public void Can_add_codes()
        {
            var manager = new UsedCodesManager();

            Assert.IsFalse(manager.IsCodeUsed(42L, "def","u"));
            manager.AddCode(42L, "def", "u");
            Assert.IsTrue(manager.IsCodeUsed(42L, "def", "u"));
        }
Пример #2
0
        public void Can_add_codes()
        {
            var manager = new UsedCodesManager();

            Assert.IsFalse(manager.IsCodeUsed(42L, "def", "u"));
            manager.AddCode(42L, "def", "u");
            Assert.IsTrue(manager.IsCodeUsed(42L, "def", "u"));
        }