Last active
August 29, 2015 14:07
-
-
Save serbrech/e45617cceafcb1ffba25 to your computer and use it in GitHub Desktop.
EquivalenceFail.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using FluentAssertions; | |
| using NUnit.Framework; | |
| namespace EquivalentTest | |
| { | |
| [TestFixture] | |
| public class EquivalenceTest | |
| { | |
| [Test] | |
| public void Test() | |
| { | |
| var source = new A.MyClass(); | |
| var destination = new B.MyClass(); | |
| //Expected property MyEnum to be Gold, but found Gold. | |
| source.ShouldBeEquivalentTo(destination); | |
| } | |
| } | |
| } | |
| namespace B | |
| { | |
| class MyClass | |
| { | |
| public string Text { get; set; } | |
| public MyEnum MyEnum { get; set; } | |
| } | |
| enum MyEnum | |
| { | |
| Gold, | |
| Silver | |
| } | |
| } | |
| namespace A | |
| { | |
| class MyClass | |
| { | |
| public string Text { get; set; } | |
| public MyEnum MyEnum { get; set; } | |
| } | |
| enum MyEnum | |
| { | |
| Gold, | |
| Silver | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment