Skip to content

Instantly share code, notes, and snippets.

@serbrech
Last active August 29, 2015 14:07
Show Gist options
  • Select an option

  • Save serbrech/e45617cceafcb1ffba25 to your computer and use it in GitHub Desktop.

Select an option

Save serbrech/e45617cceafcb1ffba25 to your computer and use it in GitHub Desktop.
EquivalenceFail.cs
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