Пример #1
0
 public void InterfaceRules_ObserverGrain_PropertySetter()
 {
     Xunit.Assert.Throws <GrainInterfaceUtils.RulesViolationException>(() =>
                                                                       GrainInterfaceUtils.ValidateInterface(typeof(IInheritedGrain_ObserverGrain_PropertySetter)));
 }
Пример #2
0
 public void InterfaceRules_Observer_Property()
 {
     Xunit.Assert.Throws <GrainInterfaceUtils.RulesViolationException>(() =>
                                                                       GrainInterfaceUtils.ValidateInterface(typeof(ITestObserver_Property)));
 }
Пример #3
0
 public void InterfaceRules_RefArgument()
 {
     Xunit.Assert.Throws <GrainInterfaceUtils.RulesViolationException>(() =>
                                                                       GrainInterfaceUtils.ValidateInterface(typeof(ITestGrain_RefArgument)));
 }
Пример #4
0
 public void InterfaceRules_IntMethod()
 {
     Xunit.Assert.Throws <GrainInterfaceUtils.RulesViolationException>(() =>
                                                                       GrainInterfaceUtils.ValidateInterface(typeof(ITestGrain_IntMethod)));
 }
Пример #5
0
 public void InterfaceRules_ObserverGrain_IntMethod()
 {
     Assert.Throws <GrainInterfaceUtils.RulesViolationException>(() =>
                                                                 GrainInterfaceUtils.ValidateInterface(typeof(IInheritedGrain_ObserverGrain_IntMethod)));
 }
Пример #6
0
 public void InterfaceRules_Observer_NonVoidMethod()
 {
     Assert.Throws <GrainInterfaceUtils.RulesViolationException>(() =>
                                                                 GrainInterfaceUtils.ValidateInterface(typeof(ITestObserver_NonVoidMethod)));
 }
Пример #7
0
 public void InterfaceRules_PropertySetter()
 {
     Assert.Throws <GrainInterfaceUtils.RulesViolationException>(() =>
                                                                 GrainInterfaceUtils.ValidateInterface(typeof(ITestGrain_PropertySetter)));
 }
Пример #8
0
 public void InterfaceRules_ValueTask()
 {
     GrainInterfaceUtils.ValidateInterface(typeof(ITestGrain_ValueTask));
 }