Exemplo n.º 1
0
        public void throw_exception_if_RuneLevel_not_provided()
        {
            var query = new GetRandomRuneAtLevel {
            };

            Assert.That(() => Repository.FindSingle(query),
                        Throws.TypeOf <DomainException>().With.Message.EqualTo("RuneLevel is required"));
        }
Exemplo n.º 2
0
        public void throw_exception_if_RuneLevel_invalid()
        {
            var query = new GetRandomRuneAtLevel {
                RuneLevel = 12345
            };

            Assert.That(() => Repository.FindSingle(query),
                        Throws.TypeOf <DomainException>().With.Message.EqualTo("RuneLevel '12345' is not a valid level."));
        }