示例#1
0
    public void CompareUnequalValuesCorrecltyUsingEquals()
    {
        var a = new EntityStub(1);
        var b = new EntityStub(2);

        var result = a.Equals(b);

        Assert.False(result);
    }
示例#2
0
    public void CompareValueToNullCorrectlyUsingEquals()
    {
        var        a = new EntityStub(1);
        EntityStub b = null;

        var result = a.Equals(b);

        Assert.False(result);
    }
示例#3
0
    public void CompareReferenceValuesCorrectlyUsingEquals()
    {
        var a = new EntityStub(1);
        var b = a;

        var result = a.Equals(b);

        Assert.True(result);
    }