public void GetPropertiesTable7() { Hashtable propertiesTable; // This is a failure case. Assert.IsTrue(!PropertyParser.GetTable(null, "Properties", new string[] { "=Debug" }, out propertiesTable)); }
public void GetTable1() { Assert.True(PropertyParser.GetTable(null, "Properties", null, out Dictionary <string, string> propertiesTable)); // We should have null table. Assert.Null(propertiesTable); }
public void GetPropertiesTable8() { Hashtable propertiesTable; // This is a failure case. (Second property "x86" doesn't have a value.) Assert.IsTrue(!PropertyParser.GetTable(null, "Properties", new string[] { "Configuration=Debug", "x86" }, out propertiesTable)); }
public void GetTable1() { Hashtable propertiesTable; Assert.IsTrue(PropertyParser.GetTable(null, "Properties", null, out propertiesTable)); // We should have null table. Assert.IsNull(propertiesTable); }
public void GetPropertiesTable3() { Assert.True(PropertyParser.GetTable(null, "Properties", new[] { "Configuration=Debug" }, out Dictionary <string, string> propertiesTable)); // We should have a table that looks like this: // KEY VALUE // ================= ========================= // Configuration Debug Assert.Single(propertiesTable); Assert.Equal("Debug", propertiesTable["Configuration"]); }
public void GetPropertiesTable10() { Assert.True(PropertyParser.GetTable(null, "Properties", new[] { "Depends On = CleanBuild" }, out Dictionary <string, string> propertiesTable)); // We should have a table that looks like this: // KEY VALUE // ================= ========================= // Depends On CleanBuild Assert.Single(propertiesTable); Assert.Equal("CleanBuild", propertiesTable["Depends On"]); }
public void GetPropertiesTable3() { Hashtable propertiesTable; Assert.IsTrue(PropertyParser.GetTable(null, "Properties", new string[] { "Configuration=Debug" }, out propertiesTable)); // We should have a table that looks like this: // KEY VALUE // ================= ========================= // Configuration Debug Assert.AreEqual(1, propertiesTable.Count); Assert.AreEqual("Debug", (string)propertiesTable["Configuration"]); }
public void GetPropertiesTable10() { Hashtable propertiesTable; Assert.IsTrue(PropertyParser.GetTable(null, "Properties", new string[] { "Depends On = CleanBuild" }, out propertiesTable)); // We should have a table that looks like this: // KEY VALUE // ================= ========================= // Depends On CleanBuild Assert.AreEqual(1, propertiesTable.Count); Assert.AreEqual("CleanBuild", (string)propertiesTable["Depends On"]); }
public void GetPropertiesTable6() { Assert.True(PropertyParser.GetTable(null, "Properties", new[] { "Configuration=", "Platform = " }, out Dictionary <string, string> propertiesTable)); // We should have a table that looks like this: // KEY VALUE // ================= ========================= // Configuration <blank> // Platform <blank> Assert.Equal(2, propertiesTable.Count); Assert.Equal("", propertiesTable["Configuration"]); Assert.Equal("", propertiesTable["Platform"]); }
public void GetPropertiesTable5() { Assert.True(PropertyParser.GetTable(null, "Properties", new[] { "Configuration = Debug", "Platform \t= AnyCPU" }, out Dictionary <string, string> propertiesTable)); // We should have a table that looks like this: // KEY VALUE // ================= ========================= // Configuration Debug // Platform AnyCPU Assert.Equal(2, propertiesTable.Count); Assert.Equal("Debug", propertiesTable["Configuration"]); Assert.Equal("AnyCPU", propertiesTable["Platform"]); }
public void GetPropertiesTable6() { Hashtable propertiesTable; Assert.IsTrue(PropertyParser.GetTable(null, "Properties", new string[] { "Configuration=", "Platform = " }, out propertiesTable)); // We should have a table that looks like this: // KEY VALUE // ================= ========================= // Configuration <blank> // Platform <blank> Assert.AreEqual(2, propertiesTable.Count); Assert.AreEqual("", (string)propertiesTable["Configuration"]); Assert.AreEqual("", (string)propertiesTable["Platform"]); }
public void GetPropertiesTable4() { Hashtable propertiesTable; Assert.IsTrue(PropertyParser.GetTable(null, "Properties", new string[] { "Configuration=Debug", "Platform=AnyCPU", "VBL=Lab22Dev" }, out propertiesTable)); // We should have a table that looks like this: // KEY VALUE // ================= ========================= // Configuration Debug // Platform AnyCPU // VBL Lab22Dev Assert.AreEqual(3, propertiesTable.Count); Assert.AreEqual("Debug", (string)propertiesTable["Configuration"]); Assert.AreEqual("AnyCPU", (string)propertiesTable["Platform"]); Assert.AreEqual("Lab22Dev", (string)propertiesTable["VBL"]); }
public void GetPropertiesTable7() { // This is a failure case. Assert.False(PropertyParser.GetTable(null, "Properties", new[] { "=Debug" }, out _)); }
public void GetPropertiesTable8() { // This is a failure case. (Second property "x86" doesn't have a value.) Assert.False(PropertyParser.GetTable(null, "Properties", new[] { "Configuration=Debug", "x86" }, out _)); }