Beispiel #1
0
        public void ParseArguments_NoOptionsTest()
        {
            var args = new string[] { };

            Assert.Empty(MyApplication.ParseArguments(args));
        }
Beispiel #2
0
        public void ParseArguments_IgroreInvalidOptionsTest()
        {
            var args = new string[] { "--foo", "/" };

            Assert.Empty(MyApplication.ParseArguments(args));
        }
Beispiel #3
0
        public void GetPreferredCulture_Test(string currentCulture, string expectedCulture)
        {
            var actual = MyApplication.GetPreferredCulture(new CultureInfo(currentCulture));

            Assert.Equal(expectedCulture, actual.Name);
        }