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