示例#1
0
        public void TestGetDocumentKeyType_LongKey()
        {
            var id = 123L;

            var testKeyType = DocumentKey.GetDocumentKeyType(id);

            Assert.AreEqual(DocumentKeyType.Long, testKeyType);
        }
示例#2
0
        public void TestGetDocumentKeyType_StringKey()
        {
            var id = "abc";

            var testKeyType = DocumentKey.GetDocumentKeyType(id);

            Assert.AreEqual(DocumentKeyType.String, testKeyType);
        }
示例#3
0
        public void TestGetDocumentKeyType_GuidKey()
        {
            var id = Guid.NewGuid();

            var testKeyType = DocumentKey.GetDocumentKeyType(id);

            Assert.AreEqual(DocumentKeyType.Guid, testKeyType);
        }
示例#4
0
        public void TestGetDocumentKeyType_IntKey()
        {
            var id = 123;

            var testKeyType = DocumentKey.GetDocumentKeyType(id);

            Assert.AreEqual(DocumentKeyType.Int, testKeyType);
        }
示例#5
0
 public void TestGetDocumentKeyType_UnknownType()
 {
     var testKeyType = DocumentKey.GetDocumentKeyType('c');
 }