예제 #1
0
        public void ValidateInvalidAddress()
        {
            var t_Bank  = new MemoryBank(100);
            var t_Valid = t_Bank.IsValid(new MemoryAddress(-1));

            t_Valid.Should().Be(false);
        }
예제 #2
0
        public void ValidateAddress()
        {
            var t_Bank  = new MemoryBank(100);
            var t_Valid = t_Bank.IsValid(new MemoryAddress(0));

            t_Valid.Should().Be(true);
        }