public void TestGetDocumentKeyType_LongKey() { var id = 123L; var testKeyType = DocumentKey.GetDocumentKeyType(id); Assert.AreEqual(DocumentKeyType.Long, testKeyType); }
public void TestGetDocumentKeyType_StringKey() { var id = "abc"; var testKeyType = DocumentKey.GetDocumentKeyType(id); Assert.AreEqual(DocumentKeyType.String, testKeyType); }
public void TestGetDocumentKeyType_GuidKey() { var id = Guid.NewGuid(); var testKeyType = DocumentKey.GetDocumentKeyType(id); Assert.AreEqual(DocumentKeyType.Guid, testKeyType); }
public void TestGetDocumentKeyType_IntKey() { var id = 123; var testKeyType = DocumentKey.GetDocumentKeyType(id); Assert.AreEqual(DocumentKeyType.Int, testKeyType); }
public void TestGetDocumentKeyType_UnknownType() { var testKeyType = DocumentKey.GetDocumentKeyType('c'); }