public void TestToMessageString() { var hash = new HashtableMessage(); hash["Unit1"] = "This is the data for unit 1"; hash["TagNumber2"] = "tag 2"; const string Expected = "15Unit1227This is the data for unit 1210TagNumber215tag 2"; Assert.AreEqual(Expected, hash.ToMessageString()); }