Ejemplo n.º 1
0
        public void VerifyHashType()
        {
            LightConfig lightConfig;

            XAssert.IsTrue(LightConfig.TryParse(new[] { $"/c:fake", "/hashtype:murmur" }, out lightConfig));
            XAssert.AreEqual("murmur", lightConfig.HashType);
        }
Ejemplo n.º 2
0
        private void RunCongruentTest(string[] args, bool passParse = true)
        {
            ICommandLineConfiguration config;
            PathTable pt = new PathTable();
            bool      fullConfigSuccess = Args.TryParseArguments(args, pt, null, out config);

            LightConfig lightConfig;
            bool        lightConfigSuccess = LightConfig.TryParse(args, out lightConfig);

            XAssert.AreEqual(passParse, fullConfigSuccess);
            XAssert.AreEqual(passParse, lightConfigSuccess);

            if (passParse)
            {
                AssertCongruent(pt, config, lightConfig);
            }
        }