Acquarella.Tests.Configuration.LexerConfigurationTests.GetCSharpConfigurationFromFile C# (CSharp) Méthode

GetCSharpConfigurationFromFile() private méthode

private GetCSharpConfigurationFromFile ( ) : void
Résultat void
        public void GetCSharpConfigurationFromFile()
        {
            LexerConfiguration config = LexerConfiguration.LoadFromFile("CSharp.txt");

            Assert.IsNotNull(config.Keywords);
            Assert.IsNotNull(config.Operators);
            Assert.IsNull(config.StringDelimeters);

            Assert.AreEqual(8, config.Operators.Count);
            Assert.AreEqual(77, config.Keywords.Count);

            Assert.IsTrue(config.Operators.Contains("="));
            Assert.IsTrue(config.Keywords.Contains("for"));
            Assert.IsTrue(config.Keywords.Contains("foreach"));
            Assert.IsTrue(config.Keywords.Contains("class"));
            Assert.IsTrue(config.Keywords.Contains("if"));
            Assert.IsTrue(config.Keywords.Contains("while"));
        }