コード例 #1
0
        public void GetSerializedString_ReturnsValidString_WhenUsingName()
        {
            const string   name           = "table collection name";
            TableReference tableReference = name;

            Assert.AreEqual(name, tableReference.GetSerializedString());
        }
コード例 #2
0
        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());
        }