public void MinimumIceMessage() { var ice = new IceMessage("ICE00\t3\tTest description."); Assert.AreEqual<string>("ICE00", ice.Name, "The ICE name is incorrect."); Assert.AreEqual<IceMessageType>(IceMessageType.Information, ice.Type, "The ICE type is incorrect."); Assert.AreEqual<string>("Test description.", ice.Description, "The ICE description is incorrect."); }
public void MinimumIceMessage() { var ice = new IceMessage("ICE00\t3\tTest description."); Assert.AreEqual <string>("ICE00", ice.Name, "The ICE name is incorrect."); Assert.AreEqual <IceMessageType>(IceMessageType.Information, ice.Type, "The ICE type is incorrect."); Assert.AreEqual <string>("Test description.", ice.Description, "The ICE description is incorrect."); }
public void MaximumIceMessage() { var ice = new IceMessage("ICE00\t3\tTest description.\thttp://psmsi.codeplex.com\tTable\tColumn\tKey1\tKey2"); Assert.AreEqual<string>("ICE00", ice.Name, "The ICE name is incorrect."); Assert.AreEqual<IceMessageType>(IceMessageType.Information, ice.Type, "The ICE type is incorrect."); Assert.AreEqual<string>("Test description.", ice.Description, "The ICE description is incorrect."); Assert.AreEqual<string>("http://psmsi.codeplex.com", ice.Url, "The ICE URL is incorrect."); Assert.AreEqual<string>("Table", ice.Table, "The ICE table is incorrect."); Assert.AreEqual<string>("Column", ice.Column, "The ICE column is incorrect."); CollectionAssert.AreEqual(new string[] { "Key1", "Key2" }, ice.PrimaryKeys, "The ICE primary keys are incorrect."); }
public void MaximumIceMessage() { var ice = new IceMessage("ICE00\t3\tTest description.\thttp://psmsi.codeplex.com\tTable\tColumn\tKey1\tKey2"); Assert.AreEqual <string>("ICE00", ice.Name, "The ICE name is incorrect."); Assert.AreEqual <IceMessageType>(IceMessageType.Information, ice.Type, "The ICE type is incorrect."); Assert.AreEqual <string>("Test description.", ice.Description, "The ICE description is incorrect."); Assert.AreEqual <string>("http://psmsi.codeplex.com", ice.Url, "The ICE URL is incorrect."); Assert.AreEqual <string>("Table", ice.Table, "The ICE table is incorrect."); Assert.AreEqual <string>("Column", ice.Column, "The ICE column is incorrect."); CollectionAssert.AreEqual(new string[] { "Key1", "Key2" }, ice.PrimaryKeys, "The ICE primary keys are incorrect."); }
public void InvalidIceMessage() { var ice = new IceMessage("ICE00\t1"); }