예제 #1
0
 public void DetermineResourceKeyBehaviorTestString()
 {
     var expected = ResourceSelectorBehavior.ValueAsKey;
     var testee = new ResourceSelector();
     var actual = ResourceSelector.DetermineResourceKeyBehavior("test");
     Assert.AreEqual(expected, actual);
 }
예제 #2
0
 public void DetermineResourceKeyBehaviorTestIProvideResourceKey()
 {
     var expected = ResourceSelectorBehavior.ValueAsKey;
     var testee = new ResourceSelector();
     var actual = ResourceSelector.DetermineResourceKeyBehavior(new TestImplementor());
     Assert.AreEqual(expected, actual);
 }
예제 #3
0
 public void DetermineResourceKeyBehaviorTestDateTime()
 {
     var expected = ResourceSelectorBehavior.ValueAsKey;
     var testee = new ResourceSelector();
     var actual = ResourceSelector.DetermineResourceKeyBehavior(DateTime.Now);
     Assert.AreEqual(expected, actual);
 }
예제 #4
0
 public void DetermineResourceKeyBehaviorTestEnum()
 {
     var expected = ResourceSelectorBehavior.ValueAsKey;
     var testee = new ResourceSelector();
     var actual = ResourceSelector.DetermineResourceKeyBehavior(TestEnum.FirstValue);
     Assert.AreEqual(expected, actual);
 }
예제 #5
0
 public void DetermineResourceKeyBehaviorTestCustomType()
 {
     var expected = ResourceSelectorBehavior.ValueTypeAsKey;
     var testee = new ResourceSelector();
     var actual = ResourceSelector.DetermineResourceKeyBehavior(new CustomType());
     Assert.AreEqual(expected, actual);
 }