Ejemplo n.º 1
0
        public void Match_InitiatlyNonExistingKey_ReturnNewValue()
        {
            var stateLookup = new StateLookup();

            stateLookup.Load();
            var stateFirst  = stateLookup.Match("Paused");
            var stateSecond = stateLookup.Match("Paused");

            Assert.That(stateFirst, Is.EqualTo(stateSecond));
        }
Ejemplo n.º 2
0
        public void Match_NonExistingKey_ReturnNewValue()
        {
            var stateLookup = new StateLookup();

            stateLookup.Load();
            var country = stateLookup.Match("Waiting");

            Assert.That(country, Is.GreaterThan(2));
        }
Ejemplo n.º 3
0
        public void Match_ExistingKey_ReturnValue()
        {
            var stateLookup = new StateLookup();

            stateLookup.Load();
            var state = stateLookup.Match("Started");

            Assert.That(state, Is.EqualTo(1));
        }