removing extra lines

This commit is contained in:
James-Frowen Laptop2 2020-04-13 19:14:47 +01:00 committed by Paul Pacheco
parent c4d373984d
commit 239b7b762a
10 changed files with 8 additions and 45 deletions

View File

@ -1,6 +1,4 @@
//#define LOG_WEAVER_OUTPUTS
using NUnit.Framework;
using NUnit.Framework;
namespace Mirror.Weaver.Tests
{
@ -26,7 +24,5 @@ public void ClientRpcCantBeStatic()
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Void MirrorTest.MirrorTestPlayer::RpcCantBeStatic() must not be static"));
}
}
}

View File

@ -1,5 +1,3 @@
//#define LOG_WEAVER_OUTPUTS
using System.Linq;
using Mono.CecilX;
using Mono.CecilX.Cil;
@ -59,7 +57,5 @@ static void CheckAddedCode(string addedString, string methodName)
Assert.AreEqual(top.Operand.ToString(), addedString);
}
}
}
}

View File

@ -1,6 +1,4 @@
//#define LOG_WEAVER_OUTPUTS
using NUnit.Framework;
using NUnit.Framework;
namespace Mirror.Weaver.Tests
{
@ -26,7 +24,5 @@ public void CommandCantBeStatic()
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Void MirrorTest.MirrorTestPlayer::CmdCantBeStatic() cannot be static"));
}
}
}

View File

@ -1,6 +1,4 @@
//#define LOG_WEAVER_OUTPUTS
using NUnit.Framework;
using NUnit.Framework;
namespace Mirror.Weaver.Tests
{
@ -48,7 +46,5 @@ public void MessageMemberInterface()
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: Cannot generate writer for interface MirrorTest.SuperCoolInterface. Use a concrete type or provide a custom writer"));
}
}
}

View File

@ -1,6 +1,4 @@
//#define LOG_WEAVER_OUTPUTS
using NUnit.Framework;
using NUnit.Framework;
namespace Mirror.Weaver.Tests
{
@ -75,7 +73,5 @@ public void MonoBehaviourClientCallback()
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: [ClientCallback] System.Void MirrorTest.MirrorTestPlayer::ThisCantBeOutsideNetworkBehaviour() must be declared inside a NetworkBehaviour"));
}
}
}

View File

@ -1,6 +1,4 @@
//#define LOG_WEAVER_OUTPUTS
using NUnit.Framework;
using NUnit.Framework;
namespace Mirror.Weaver.Tests
{
@ -236,7 +234,5 @@ public void NetworkBehaviourCmdDuplicateName()
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: Duplicate Command name [MirrorTest.MirrorTestPlayer:CmdCantHaveSameName]"));
}
}
}

View File

@ -1,6 +1,4 @@
//#define LOG_WEAVER_OUTPUTS
using NUnit.Framework;
using NUnit.Framework;
namespace Mirror.Weaver.Tests
{
@ -26,8 +24,5 @@ public void SyncListByteValid()
Assert.That(CompilationFinishedHook.WeaveFailed, Is.False);
Assert.That(weaverErrors, Is.Empty);
}
}
}

View File

@ -1,6 +1,4 @@
//#define LOG_WEAVER_OUTPUTS
using NUnit.Framework;
using NUnit.Framework;
namespace Mirror.Weaver.Tests
{
@ -98,6 +96,5 @@ public void SyncVarsMoreThan63()
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: MirrorTest.MirrorTestPlayer has too many SyncVars. Consider refactoring your class into multiple components"));
}
}
}

View File

@ -1,6 +1,4 @@
//#define LOG_WEAVER_OUTPUTS
using NUnit.Framework;
using NUnit.Framework;
namespace Mirror.Weaver.Tests
{
@ -47,7 +45,5 @@ public void SyncEventParamGeneric()
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: MirrorTest.MirrorTestPlayer/MySyncEventDelegate`1<System.Int32> MirrorTest.MirrorTestPlayer::EventDoCoolThingsWithExcitingPeople must not have generic parameters. Consider creating a new class that inherits from MirrorTest.MirrorTestPlayer/MySyncEventDelegate`1<System.Int32> instead"));
}
}
}

View File

@ -74,6 +74,5 @@ public void TestCleanup()
weaverWarnings.Clear();
weaverErrors.Clear();
}
}
}