Пример #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();
            }