Quantcast
Channel: Fluent Assertions
Viewing all articles
Browse latest Browse all 1402

Commented Issue: Issue with normal Should Be call [12478]

$
0
0
Hi

I receive an exception when i make a call like this:

```
etuResponse.Header.RspCode.Should().Be(0);

```

Thats all. I am doing nothing else.
RspCode has the value 234.
I am using MSTest, Visual Studio 2012, .Net 4.5
FluentAssertion Version: 2.0.0.0

```
System.NotSupportedException occurred
HResult=-2146233067
Message=The invoked member is not supported in a dynamic assembly.
Source=mscorlib
StackTrace:
at System.Reflection.Emit.InternalAssemblyBuilder.GetExportedTypes()
at FluentAssertions.Formatting.AttributeBasedFormatter.GetExportedTypes(Assembly assembly) in c:\Workspaces\codeplex\fluentassertions\Main\FluentAssertions.Net35\Formatting\AttributeBasedFormatter.cs:line 126
InnerException:
```
Comments: Hmm, I just noticed that the 2.0 version of the AttributeBasedFormatter is actually already intercepting that exception. Don't understand why it still bubbles through...

Viewing all articles
Browse latest Browse all 1402

Trending Articles