Пример #1
0
        public void Count_GetCount_CountShouldBeEqualToAddedReaderCount()
        {
            ReaderRegister register = new ReaderRegister();

            register.Add(new Reader("name"));
            register.Add(new Reader("n"));
            register.Count().Should().Be(2);
        }
Пример #2
0
        public void ReaderRegister_CreatedReaderRegister_ReaderRegisterCountShouldBeNull()
        {
            ReaderRegister register = new ReaderRegister();
            int            expected = 0;
            int            actual   = register.Count();

            Assert.AreEqual(expected, actual);
        }