problems with Interface implementation
isaacbromberg opened this issue · comments
bellow doesnt work(test fails) but it shuld imho.
`
using NUnit.Framework;
using Value;
namespace ValueObjectTests
{
[TestFixture]
public class ValueObjectTests
{
[Test]
public void EqualityTests()
{
IMyValueObject a = new MyValueObject();
IMyValueObject b = new MyValueObject();
var actual = a == b;
var expected = true;
Assert.AreEqual(expected, actual);
}
}
public interface IMyValueObject
{
string Val { get; }
}
public class MyValueObject : ValueObject, IMyValueObject
{
public string Val { get; } = "xxx";
}
}`
I Found Its problem with .NET not Value Object. Used abstract class instead of interface