Пример #1
0
        public void can_add_new_key_to_database()
        {
            PatchEnLocaleWithExtraStuff();

            var extra = new ExtraStuff();

            extra.JunkFood().Should().Be("Pizza");
            extra.Drink().Should().Be("Pepsi");
        }
Пример #2
0
        public void should_be_able_to_reset_a_locale()
        {
            PatchEnLocaleWithExtraStuff();

            var extra = new ExtraStuff();

            extra.JunkFood().Should().Be("Pizza");

            Database.ResetLocale("en");

            Action error = () => extra.JunkFood().Should().Be("Pizza");

            error.ShouldThrow <NullReferenceException>();
        }