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); }
public void Chathub_has_hubname_attribute() { var hub = new ChatboxHub(); var type = hub.GetType(); var attributes = type.GetCustomAttributes(typeof(HubNameAttribute)); Assert.True(attributes.Any()); }