コード例 #1
0
 public void Matches_returns_true_if_the_interface_is_decorated_with_EnforceCapabilities(CapabilityEnforcementSpec sut)
 {
     Assert.That(() => sut.Matches(typeof(ISampleInterface)), Is.True);
 }
コード例 #2
0
 public void Matches_returns_false_if_the_type_is_not_an_interface(CapabilityEnforcementSpec sut)
 {
     Assert.That(() => sut.Matches(typeof(string)), Is.False);
 }
コード例 #3
0
 public void Matches_returns_false_if_the_interface_is_not_decorated_with_EnforceCapabilities(CapabilityEnforcementSpec sut)
 {
     Assert.That(() => sut.Matches(typeof(ISampleInterfaceWithoutEnforcement)), Is.False);
 }
コード例 #4
0
 public void Matches_returns_false_if_the_type_is_null(CapabilityEnforcementSpec sut)
 {
     Assert.That(() => sut.Matches(null), Is.False);
 }