Exemple #1
0
 public void IsComponentHandleType_WhenTypeIsNotAComponentHandleComponentHandle_ReturnsFalse()
 {
     Assert.IsFalse(ComponentHandle.IsComponentHandleType(typeof(object)));
 }
Exemple #2
0
 public void IsComponentHandleType_WhenTypeIsNonGenericComponentHandle_ReturnsTrue()
 {
     Assert.IsTrue(ComponentHandle.IsComponentHandleType(typeof(ComponentHandle)));
 }
Exemple #3
0
 public void IsComponentHandleType_WhenTypeIsGenericComponentHandle_ReturnsTrue()
 {
     Assert.IsTrue(ComponentHandle.IsComponentHandleType(typeof(ComponentHandle <DummyService, DummyTraits>)));
 }
Exemple #4
0
 public void IsComponentHandleType_WhenTypeIsNull_Throws()
 {
     Assert.Throws <ArgumentNullException>(() => ComponentHandle.IsComponentHandleType(null));
 }