示例#1
0
        public void ExpectInitialisingWithEmptyFolderToFail()
        {
            Assert.Throws <ArgumentException>(() =>
            {
                Localiser.Initialise("InvalidFolderName_Does_Not_Exist", "en-GB");
            });

            Assert.IsFalse(Localiser.Initialised);
        }
示例#2
0
        public void ExpectLocaliserToInitialise()
        {
            Assert.DoesNotThrow(() =>
            {
                Localiser.Initialise("", "en-GB");
            });

            Assert.IsTrue(Localiser.Initialised);
        }