Пример #1
0
            public void ThenShouldBeNotEqualGivenSameTickerAndDifferentContext()
            {
                //arrange
                var record1 = new TickerTrackerRecord("F", "hss");
                var record2 = new TickerTrackerRecord("F", "r-wsb");

                //act
                var @equals = record1.Equals(record2);

                //assert
                Assert.That(@equals, Is.False);
            }
Пример #2
0
            public void ThenShouldBeEqualGivenSameTickerAndSameContext()
            {
                //arrange
                var record1 = new TickerTrackerRecord("TSLA", "r-wsb");
                var record2 = new TickerTrackerRecord("TSLA", "r-wsb");

                //act
                var @equals = record1.Equals(record2);

                //assert
                Assert.That(@equals, Is.True);
            }