Пример #1
0
            public void WithNull_False()
            {
                IssueId vo = Freeze.GuidOne;

                var actually = vo.Equals(null);

                actually.Should().BeFalse();
            }
Пример #2
0
            public void WithSomethingDifferent_False()
            {
                IssueId vo = Freeze.GuidOne;

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

                actually.Should().BeFalse();
            }
Пример #3
0
            public void WithSameObject_True()
            {
                IssueId vo  = Freeze.GuidOne;
                var     one = new IssueId(Freeze.GuidOne);

                var actually = vo.Equals(one);

                actually.Should().BeTrue();
            }
Пример #4
0
            public void WithEmptyObject_False()
            {
                IssueId vo    = Freeze.GuidOne;
                var     empty = new IssueId();

                var actually = vo.Equals(empty);

                actually.Should().BeFalse();
            }