public void TestConvertMultipleValues()
 {
     var converter = new DefaultKeyConverter();
     var objectValue = new MockEntityObject {Key = "foo"};
     const int intValue = 42;
     Assert.That(converter.GenerateKey(new object[]{objectValue, intValue},"/", typeof(MockEntityObject)),
         Is.EqualTo("foo/42"));
 }
Beispiel #2
0
        public void TestConvertBrightstarEntityObject()
        {
            var converter = new DefaultKeyConverter();
            var mock      = new MockEntityObject {
                Key = "foo"
            };

            Assert.That(converter.Convert(mock), Is.EqualTo("foo"));
        }
Beispiel #3
0
        public void TestConvertMultipleValues()
        {
            var converter   = new DefaultKeyConverter();
            var objectValue = new MockEntityObject {
                Key = "foo"
            };
            const int intValue = 42;

            Assert.That(converter.GenerateKey(new object[] { objectValue, intValue }, "/", typeof(MockEntityObject)),
                        Is.EqualTo("foo/42"));
        }
 public void TestConvertBrightstarEntityObject()
 {
     var converter = new DefaultKeyConverter();
     var mock = new MockEntityObject{Key="foo"};
     Assert.That(converter.Convert(mock), Is.EqualTo("foo"));
 }