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: A bit more stack trace maybe helpful: ``` mscorlib.dll!System.Reflection.Emit.InternalAssemblyBuilder.GetExportedTypes() + 0x39 bytes FluentAssertions.dll!FluentAssertions.Formatting.AttributeBasedFormatter.GetExportedTypes(System.Reflection.Assembly assembly) Line 126 + 0xb bytes C# System.Core.dll!System.Linq.Enumerable.SelectManyIterator<System.Reflection.Assembly,System.Type>.MoveNext() + 0xeb bytes System.Core.dll!System.Linq.Buffer<System.Type>.Buffer(System.Collections.Generic.IEnumerable<System.Type> source) + 0x150 bytes System.Core.dll!System.Linq.Enumerable.ToArray<System.Type>(System.Collections.Generic.IEnumerable<System.Type> source) + 0x4e bytes FluentAssertions.dll!FluentAssertions.Formatting.AttributeBasedFormatter.AllTypes.get() Line 119 + 0x58 bytes C# FluentAssertions.dll!FluentAssertions.Formatting.AttributeBasedFormatter.FindCustomFormatters() Line 63 + 0x6 bytes C# FluentAssertions.dll!FluentAssertions.Formatting.AttributeBasedFormatter.Formatters.get() Line 58 + 0x24 bytes C# FluentAssertions.dll!FluentAssertions.Formatting.AttributeBasedFormatter.GetFormatter(object value) Line 53 + 0x9 bytes C# FluentAssertions.dll!FluentAssertions.Formatting.AttributeBasedFormatter.CanHandle(object value) Line 27 + 0x12 bytes C# FluentAssertions.dll!FluentAssertions.Formatting.Formatter.ToString.AnonymousMethod__0(FluentAssertions.Formatting.IValueFormatter f) Line 54 + 0xf bytes C# System.Core.dll!System.Linq.Enumerable.First<FluentAssertions.Formatting.IValueFormatter>(System.Collections.Generic.IEnumerable<FluentAssertions.Formatting.IValueFormatter> source, System.Func<FluentAssertions.Formatting.IValueFormatter,bool> predicate) + 0x8f bytes FluentAssertions.dll!FluentAssertions.Formatting.Formatter.ToString(object value, bool useLineBreaks, System.Collections.Generic.IList<object> processedObjects, int nestedPropertyLevel) Line 54 + 0x36 bytes C# FluentAssertions.dll!FluentAssertions.Execution.Verification.BuildExceptionMessage.AnonymousMethod__3(object a) Line 217 + 0x1a bytes C# System.Core.dll!System.Linq.Enumerable.WhereSelectArrayIterator<System.__Canon,System.__Canon>.MoveNext() + 0x43 bytes mscorlib.dll!System.Collections.Generic.List<string>.InsertRange(int index, System.Collections.Generic.IEnumerable<string> collection) + 0x189 bytes mscorlib.dll!System.Collections.Generic.List<System.__Canon>.AddRange(System.Collections.Generic.IEnumerable<System.__Canon> collection) + 0xb bytes FluentAssertions.dll!FluentAssertions.Execution.Verification.BuildExceptionMessage(string failureMessage, object[] failureArgs) Line 219 C# FluentAssertions.dll!FluentAssertions.Execution.Verification.FailWith(string failureMessage, object[] failureArgs) Line 158 + 0xf bytes C# FluentAssertions.dll!FluentAssertions.Numeric.ComparableTypeAssertions<ushort>.Be(ushort expected, string reason, object[] reasonArgs) Line 45 C# > BlueLabelMexicoService.Test.dll!BlueLabelMexicoService.Test.BlueLabelMexicoHandlerTest.ProcessCashCollection_ExpectSuccess.AnonymousMethod__1(Bps.Hermes.EtuProtocol.EtuApolloRsp etuResponse) Line 133 + 0x6d bytes C# ... ```

Viewing all articles
Browse latest Browse all 1402

Trending Articles