예제 #1
0
    public void should_not_be_equal_to_other_unit_patterns()
    {
        // --arrange
        var target1 = new CanBeInstantiated();
        var target2 = new Util.OtherUnitPattern();

        // --assert
        target1.Equals(target2).Should().BeFalse();
        target2.Equals(target1).Should().BeFalse();
    }
예제 #2
0
    public void all_instances_should_be_equal()
    {
        // --arrange
        var target1 = new CanBeInstantiated();
        var target2 = new CanBeInstantiated();

        // --assert
        target1.Equals(target2).Should().BeTrue();
        target2.Equals(target1).Should().BeTrue();
    }