Beispiel #1
0
        public void Given_Traditional_Resx_File_That_Is_Ok_Expect_True()
        {
            var expected = new IdentificationResults {
                WasMatch = true
            };
            var actual = resxChecker.IsOfType(ChineseType.Traditional, @"C:\Dev\Misc\ChineseIdentifier\ChineseIdentifier.TestHarness\App_GlobalResources\Global.zh-HK.resx");

            actual.ShouldBeEquivalentTo(expected);
        }
        public static void Main(string[] args)
        {
            var resxChecker = new ResxChecker();
            var chineseType = (ChineseType)Enum.Parse(typeof(ChineseType), args[0]);
            var resxFile    = args[1];

            var result = resxChecker.IsOfType(chineseType, resxFile);

            if (result.WasMatch)
            {
                System.Console.WriteLine("File check complete - OK");
            }
            else
            {
                System.Console.WriteLine($"File check complete - {result.Message}");
            }
        }