Beispiel #1
0
 public void Chathub_has_hubname_chatboxHub()
 {
     var hub = new ChatboxHub();
     var type = hub.GetType();
     var attributes = type.GetCustomAttributes(typeof(HubNameAttribute));
     Assert.Equal("chatboxHub", (attributes.First() as HubNameAttribute).HubName);
 }
Beispiel #2
0
 public void Chathub_has_hubname_attribute()
 {
     var hub = new ChatboxHub();
     var type = hub.GetType();
     var attributes = type.GetCustomAttributes(typeof(HubNameAttribute));
     Assert.True(attributes.Any());
 }