Пример #1
0
    public void Equals_WithSameTypeAndSameValues_ReturnsTrue()
    {
        var p = new Breach()
        {
            Name = "VALUE",
        };

        var other = new Breach()
        {
            Name = "VALUE",
        };

        Assert.True(p.Equals(other));
    }
Пример #2
0
    public void Equals_WithSameTypeButDifferentValues_ReturnsFalse()
    {
        var p = new Breach()
        {
            Name = "FIRST",
        };

        var other = new Breach()
        {
            Name = "SECOND",
        };

        Assert.False(p.Equals(other));
    }
Пример #3
0
    public void Equals_WithWrongTypeObject_ReturnsFalse()
    {
        var p = new Breach();

        Assert.False(p.Equals(string.Empty));
    }
Пример #4
0
    public void Equals_WithNullObject_ReturnsFalse()
    {
        var p = new Breach();

        Assert.False(p.Equals((object)null));
    }