public void GetSerializedString_ReturnsValidString_WhenUsingName() { const string name = "table collection name"; TableReference tableReference = name; Assert.AreEqual(name, tableReference.GetSerializedString()); }
public void GetSerializedString_ReturnsValidString_WhenUsingGuid() { const string guidString = "6ba6c90a0a3c4e688f102531a843db17"; const string expectedSerializedString = "GUID:6ba6c90a0a3c4e688f102531a843db17"; var guid = Guid.Parse(guidString); Assert.AreNotEqual(Guid.Empty, guid); TableReference tableReference = guid; Assert.AreEqual(expectedSerializedString, tableReference.GetSerializedString()); }