コード例 #1
0
            public void WithNull_False()
            {
                ProjectVersionId vo = Freeze.GuidOne;

                var actually = vo.Equals(null);

                actually.Should().BeFalse();
            }
コード例 #2
0
            public void WithSomethingDifferent_False()
            {
                ProjectVersionId vo = Freeze.GuidOne;

                // ReSharper disable once SuspiciousTypeConversion.Global
                var actually = vo.Equals(DateTime.UtcNow);

                actually.Should().BeFalse();
            }
コード例 #3
0
            public void WithSameObject_True()
            {
                ProjectVersionId vo = Freeze.GuidOne;
                var one             = new ProjectVersionId(Freeze.GuidOne);

                var actually = vo.Equals(one);

                actually.Should().BeTrue();
            }
コード例 #4
0
            public void WithEmptyObject_False()
            {
                ProjectVersionId vo = Freeze.GuidOne;
                var empty           = new ProjectVersionId();

                var actually = vo.Equals(empty);

                actually.Should().BeFalse();
            }