From 0ac6b1faea1097dec0d0bbb317d4d930e455aa46 Mon Sep 17 00:00:00 2001 From: David Fowler Date: Wed, 14 Nov 2012 12:01:37 -0800 Subject: [PATCH] Changed the hub auth facts to be a HostedTest. --- .../Server/Hubs/HubAuthFacts.cs | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/tests/Microsoft.AspNet.SignalR.FunctionalTests/Server/Hubs/HubAuthFacts.cs b/tests/Microsoft.AspNet.SignalR.FunctionalTests/Server/Hubs/HubAuthFacts.cs index c6b19f2a4a..e039a2abea 100644 --- a/tests/Microsoft.AspNet.SignalR.FunctionalTests/Server/Hubs/HubAuthFacts.cs +++ b/tests/Microsoft.AspNet.SignalR.FunctionalTests/Server/Hubs/HubAuthFacts.cs @@ -2,13 +2,14 @@ using System.Security.Principal; using System.Threading; using Microsoft.AspNet.SignalR.Client.Hubs; +using Microsoft.AspNet.SignalR.FunctionalTests.Infrastructure; using Microsoft.AspNet.SignalR.Hosting.Memory; using Microsoft.AspNet.SignalR.Hubs; using Xunit; namespace Microsoft.AspNet.SignalR.Tests { - public class HubAuthFacts : IDisposable + public class HubAuthFacts : HostedTest { [Fact] public void UnauthenticatedUserCanReceiveHubMessagesByDefault() @@ -971,19 +972,5 @@ public void AuthenticatedAndAuthorizedUserCanInvokeAuthorizedHubMethods() connection.Stop(); } } - - protected virtual void Dispose(bool disposing) - { - if (disposing) - { - GC.Collect(); - GC.WaitForPendingFinalizers(); - } - } - - public void Dispose() - { - Dispose(true); - } } }