Ejemplo n.º 1
0
        public void NameProperty_OnSet_SetsTheValueToNull()
        {
            var analyzerStructure = new AnalyzerStructure();

            analyzerStructure.Name = null;
            Assert.IsNull(analyzerStructure.Name);
        }
Ejemplo n.º 2
0
        public void NameProperty_OnSet_SetsTheValue()
        {
            var analyzerStructure = new AnalyzerStructure();

            analyzerStructure.Name = "name";
            Assert.AreEqual("name", analyzerStructure.Name);
        }
Ejemplo n.º 3
0
        public void AnalyzersProperty_OnSet_SetsTheValue()
        {
            var analyzerStructure = new AnalyzerStructure();

            analyzerStructure.Analyzers = new List <string> {
                "analyzer"
            };
            Assert.IsNotNull(analyzerStructure.Analyzers);
            Assert.AreEqual(1, analyzerStructure.Analyzers.Count());
        }
Ejemplo n.º 4
0
        public void Constructor_OnExecute_InitializesCollections()
        {
            var analyzerStructure = new AnalyzerStructure();

            Assert.IsNotNull(analyzerStructure.Analyzers);
        }