diff --git a/Assets/Mirror/Tests/Editor/Mirror.Tests.asmdef b/Assets/Mirror/Tests/Editor/Mirror.Tests.asmdef index 45f67bd5e..60c6c9a96 100644 --- a/Assets/Mirror/Tests/Editor/Mirror.Tests.asmdef +++ b/Assets/Mirror/Tests/Editor/Mirror.Tests.asmdef @@ -9,7 +9,8 @@ "Telepathy", "UnityEngine.TestRunner", "UnityEditor.TestRunner", - "Unity.Mirror.CodeGen" + "Unity.Mirror.CodeGen", + "WeaverTestExtraAssembly" ], "includePlatforms": [ "Editor" diff --git a/Assets/Mirror/Tests/Editor/Weaver/README.md b/Assets/Mirror/Tests/Editor/Weaver/README.md new file mode 100644 index 000000000..9737cfa05 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/README.md @@ -0,0 +1,15 @@ +There are two types of Weaver tests: +* Success tests where we simply have to guarantee that a class is + weaved without issues. +* Failure tests where we need to make sure certain classes are not + weaved because they aren't allowed to. + +The success tests can be regular C# files. +=> Weaver runs automatically when creating them, so we don't even + need to weave those manually with AssemblyBuilder. +=> There are >100 of those tests. moving them to regular C# + removes a LOT of AssemblyBuilder time. + +The failure tests need to be weaved one at a time. +=> Weaver usually stops weaving after the first error. +=> So we weave them all separately to get all the errors. diff --git a/Assets/Mirror/Tests/Editor/Weaver/README.md.meta b/Assets/Mirror/Tests/Editor/Weaver/README.md.meta new file mode 100644 index 000000000..cfa2c7657 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/README.md.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: fe0ea9aa683941dc832caafa91f6a72d +timeCreated: 1643081104 \ No newline at end of file diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests.cs index 12896b330..7d59264ea 100644 --- a/Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests.cs +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests.cs @@ -4,12 +4,6 @@ namespace Mirror.Weaver.Tests { public class WeaverClientRpcTests : WeaverTestsBuildFromTestName { - [Test] - public void ClientRpcValid() - { - IsSuccess(); - } - [Test] public void ClientRpcCantBeStatic() { @@ -17,18 +11,6 @@ public void ClientRpcCantBeStatic() "System.Void WeaverClientRpcTests.ClientRpcCantBeStatic.ClientRpcCantBeStatic::RpcCantBeStatic()"); } - [Test] - public void VirtualClientRpc() - { - IsSuccess(); - } - - [Test] - public void OverrideVirtualClientRpc() - { - IsSuccess(); - } - [Test] public void AbstractClientRpc() { @@ -42,17 +24,5 @@ public void OverrideAbstractClientRpc() HasError("Abstract ClientRpc are currently not supported, use virtual method instead", "System.Void WeaverClientRpcTests.OverrideAbstractClientRpc.BaseBehaviour::RpcDoSomething()"); } - - [Test] - public void ClientRpcThatExcludesOwner() - { - IsSuccess(); - } - - [Test] - public void BehaviourCanBeSentInRpc() - { - IsSuccess(); - } } } diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests_IsSuccess.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests_IsSuccess.meta new file mode 100644 index 000000000..af15d896b --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests_IsSuccess.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 4f961f3f925c41f295d7ef17978001fe +timeCreated: 1643081346 \ No newline at end of file diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests~/BehaviourCanBeSentInRpc.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests_IsSuccess/BehaviourCanBeSentInRpc.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests~/BehaviourCanBeSentInRpc.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests_IsSuccess/BehaviourCanBeSentInRpc.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests_IsSuccess/BehaviourCanBeSentInRpc.cs.meta similarity index 83% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests.cs.meta rename to Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests_IsSuccess/BehaviourCanBeSentInRpc.cs.meta index 25b40d8a8..86a338ed1 100644 --- a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests.cs.meta +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests_IsSuccess/BehaviourCanBeSentInRpc.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 6aeadedebed6110459fac293b9435e88 +guid: c93dd180605f644c2b24cde840095dd7 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests~/ClientRpcThatExcludesOwner.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests_IsSuccess/ClientRpcThatExcludesOwner.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests~/ClientRpcThatExcludesOwner.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests_IsSuccess/ClientRpcThatExcludesOwner.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneralTests.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests_IsSuccess/ClientRpcThatExcludesOwner.cs.meta similarity index 83% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverGeneralTests.cs.meta rename to Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests_IsSuccess/ClientRpcThatExcludesOwner.cs.meta index cd88cdcef..3b237b58c 100644 --- a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneralTests.cs.meta +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests_IsSuccess/ClientRpcThatExcludesOwner.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: b531777359eb2fd4e97d78dea5d486ba +guid: 1d1e7f164257c4ce49acc45f27c9e16e MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests~/ClientRpcValid.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests_IsSuccess/ClientRpcValid.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests~/ClientRpcValid.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests_IsSuccess/ClientRpcValid.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests_IsSuccess/ClientRpcValid.cs.meta similarity index 83% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests.cs.meta rename to Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests_IsSuccess/ClientRpcValid.cs.meta index f3aff94b8..58ad82d7e 100644 --- a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests.cs.meta +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests_IsSuccess/ClientRpcValid.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: a2fc12fbf5fb9274dbeed361445f6cf3 +guid: 1b6e0531a6ce04c1e98316b51b1b4fda MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests~/OverrideVirtualClientRpc.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests_IsSuccess/OverrideVirtualClientRpc.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests~/OverrideVirtualClientRpc.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests_IsSuccess/OverrideVirtualClientRpc.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests_IsSuccess/OverrideVirtualClientRpc.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests_IsSuccess/OverrideVirtualClientRpc.cs.meta new file mode 100644 index 000000000..1ed894435 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests_IsSuccess/OverrideVirtualClientRpc.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6b960c909aead4954a70aebf0427f2d2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests~/VirtualClientRpc.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests_IsSuccess/VirtualClientRpc.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests~/VirtualClientRpc.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests_IsSuccess/VirtualClientRpc.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests_IsSuccess/VirtualClientRpc.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests_IsSuccess/VirtualClientRpc.cs.meta new file mode 100644 index 000000000..1fcc4a797 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests_IsSuccess/VirtualClientRpc.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2bed05ae46099420281703e1956ec658 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests.cs index 2c3a567b5..158f054ab 100644 --- a/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests.cs +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests.cs @@ -4,12 +4,6 @@ namespace Mirror.Weaver.Tests { public class WeaverCommandTests : WeaverTestsBuildFromTestName { - [Test] - public void CommandValid() - { - IsSuccess(); - } - [Test] public void CommandCantBeStatic() { @@ -17,30 +11,6 @@ public void CommandCantBeStatic() "System.Void WeaverCommandTests.CommandCantBeStatic.CommandCantBeStatic::CmdCantBeStatic()"); } - [Test] - public void CommandThatIgnoresAuthority() - { - IsSuccess(); - } - - [Test] - public void CommandWithArguments() - { - IsSuccess(); - } - - [Test] - public void CommandThatIgnoresAuthorityWithSenderConnection() - { - IsSuccess(); - } - - [Test] - public void CommandWithSenderConnectionAndOtherArgs() - { - IsSuccess(); - } - [Test] public void ErrorForOptionalNetworkConnectionThatIsNotSenderConnection() { @@ -55,36 +25,6 @@ public void ErrorForNetworkConnectionThatIsNotSenderConnection() "System.Void WeaverCommandTests.ErrorForNetworkConnectionThatIsNotSenderConnection.ErrorForNetworkConnectionThatIsNotSenderConnection::CmdFunction(Mirror.NetworkConnection)"); } - [Test] - public void VirtualCommand() - { - IsSuccess(); - } - - [Test] - public void OverrideVirtualCommand() - { - IsSuccess(); - } - - [Test] - public void OverrideVirtualCallBaseCommand() - { - IsSuccess(); - } - - [Test] - public void OverrideVirtualCallsBaseCommandWithMultipleBaseClasses() - { - IsSuccess(); - } - - [Test] - public void OverrideVirtualCallsBaseCommandWithOverride() - { - IsSuccess(); - } - [Test] public void AbstractCommand() { diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess.meta new file mode 100644 index 000000000..90cf3e18a --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: fac079ccee24451589944f06cfb495ab +timeCreated: 1643081493 \ No newline at end of file diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests~/CommandThatIgnoresAuthority.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/CommandThatIgnoresAuthority.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests~/CommandThatIgnoresAuthority.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/CommandThatIgnoresAuthority.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/CommandThatIgnoresAuthority.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/CommandThatIgnoresAuthority.cs.meta new file mode 100644 index 000000000..879f4da18 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/CommandThatIgnoresAuthority.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e4265cfab73ff4eef80a01723f6fb5fa +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests~/CommandThatIgnoresAuthorityWithSenderConnection.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/CommandThatIgnoresAuthorityWithSenderConnection.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests~/CommandThatIgnoresAuthorityWithSenderConnection.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/CommandThatIgnoresAuthorityWithSenderConnection.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/CommandThatIgnoresAuthorityWithSenderConnection.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/CommandThatIgnoresAuthorityWithSenderConnection.cs.meta new file mode 100644 index 000000000..59db1afee --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/CommandThatIgnoresAuthorityWithSenderConnection.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 10537f40690ce495486d55802e093ada +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests~/CommandValid.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/CommandValid.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests~/CommandValid.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/CommandValid.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/CommandValid.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/CommandValid.cs.meta new file mode 100644 index 000000000..61820d3f1 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/CommandValid.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3d5568e41a2584f84a1bff2d39dd38a1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests~/CommandWithArguments.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/CommandWithArguments.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests~/CommandWithArguments.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/CommandWithArguments.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/CommandWithArguments.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/CommandWithArguments.cs.meta new file mode 100644 index 000000000..1fa1dc61e --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/CommandWithArguments.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1d47ddf01d3e142c1bfa1dd16d96bc27 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests~/CommandWithSenderConnectionAndOtherArgs.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/CommandWithSenderConnectionAndOtherArgs.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests~/CommandWithSenderConnectionAndOtherArgs.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/CommandWithSenderConnectionAndOtherArgs.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/CommandWithSenderConnectionAndOtherArgs.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/CommandWithSenderConnectionAndOtherArgs.cs.meta new file mode 100644 index 000000000..55cb4e793 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/CommandWithSenderConnectionAndOtherArgs.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a5b439a62107449039062d996d83d063 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests~/OverrideVirtualCallBaseCommand.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/OverrideVirtualCallBaseCommand.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests~/OverrideVirtualCallBaseCommand.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/OverrideVirtualCallBaseCommand.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/OverrideVirtualCallBaseCommand.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/OverrideVirtualCallBaseCommand.cs.meta new file mode 100644 index 000000000..6ce08108b --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/OverrideVirtualCallBaseCommand.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2a333e7e4ee5544dc8ceb57c1615c2e6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests~/OverrideVirtualCallsBaseCommandWithMultipleBaseClasses.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/OverrideVirtualCallsBaseCommandWithMultipleBaseClasses.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests~/OverrideVirtualCallsBaseCommandWithMultipleBaseClasses.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/OverrideVirtualCallsBaseCommandWithMultipleBaseClasses.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/OverrideVirtualCallsBaseCommandWithMultipleBaseClasses.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/OverrideVirtualCallsBaseCommandWithMultipleBaseClasses.cs.meta new file mode 100644 index 000000000..61f26600e --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/OverrideVirtualCallsBaseCommandWithMultipleBaseClasses.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 99460dd9fbe0e4ff2902469dc389ae96 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests~/OverrideVirtualCallsBaseCommandWithOverride.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/OverrideVirtualCallsBaseCommandWithOverride.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests~/OverrideVirtualCallsBaseCommandWithOverride.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/OverrideVirtualCallsBaseCommandWithOverride.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/OverrideVirtualCallsBaseCommandWithOverride.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/OverrideVirtualCallsBaseCommandWithOverride.cs.meta new file mode 100644 index 000000000..6f2cd2bc3 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/OverrideVirtualCallsBaseCommandWithOverride.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e0058cedd9d5b41cda88b402d7c303be +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests~/OverrideVirtualCommand.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/OverrideVirtualCommand.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests~/OverrideVirtualCommand.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/OverrideVirtualCommand.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/OverrideVirtualCommand.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/OverrideVirtualCommand.cs.meta new file mode 100644 index 000000000..a9676d391 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/OverrideVirtualCommand.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c4f0277f89a9642f794a6bd3300ab09d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests~/VirtualCommand.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/VirtualCommand.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests~/VirtualCommand.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/VirtualCommand.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/VirtualCommand.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/VirtualCommand.cs.meta new file mode 100644 index 000000000..04aa6930f --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverCommandTests_IsSuccess/VirtualCommand.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4d6761de4ffa14f0797f83e428c9f321 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneralTests.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneralTests.cs deleted file mode 100644 index 3d9b51240..000000000 --- a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneralTests.cs +++ /dev/null @@ -1,19 +0,0 @@ -using NUnit.Framework; - -namespace Mirror.Weaver.Tests -{ - public class WeaverGeneralTests : WeaverTestsBuildFromTestName - { - [Test] - public void RecursionCount() - { - IsSuccess(); - } - - [Test] - public void TestingScriptableObjectArraySerialization() - { - IsSuccess(); - } - } -} diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneralTests_IsSuccess.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneralTests_IsSuccess.meta new file mode 100644 index 000000000..b00b4ea1d --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneralTests_IsSuccess.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 70d3b9bd4b7242e3a3c4170a476e7f51 +timeCreated: 1643081656 \ No newline at end of file diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneralTests~/RecursionCount.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneralTests_IsSuccess/RecursionCount.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverGeneralTests~/RecursionCount.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverGeneralTests_IsSuccess/RecursionCount.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneralTests_IsSuccess/RecursionCount.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneralTests_IsSuccess/RecursionCount.cs.meta new file mode 100644 index 000000000..50fc4ae12 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneralTests_IsSuccess/RecursionCount.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: df60a572fc56841c284952761332bcec +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneralTests~/TestingScriptableObjectArraySerialization.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneralTests_IsSuccess/TestingScriptableObjectArraySerialization.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverGeneralTests~/TestingScriptableObjectArraySerialization.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverGeneralTests_IsSuccess/TestingScriptableObjectArraySerialization.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneralTests_IsSuccess/TestingScriptableObjectArraySerialization.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneralTests_IsSuccess/TestingScriptableObjectArraySerialization.cs.meta new file mode 100644 index 000000000..bbe699aa7 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneralTests_IsSuccess/TestingScriptableObjectArraySerialization.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2926d9420f39349e893ddec0a517529b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests.cs deleted file mode 100644 index f9112fe09..000000000 --- a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests.cs +++ /dev/null @@ -1,43 +0,0 @@ -using NUnit.Framework; - -namespace Mirror.Weaver.Tests -{ - public class WeaverGeneratedReaderWriterAnotherAssemblyTests : WeaverTestsBuildFromTestName - { - [Test] - public void CreatesForStructFromDifferentAssemblies() - { - IsSuccess(); - } - - [Test] - public void CreatesForClassFromDifferentAssemblies() - { - IsSuccess(); - } - - [Test] - public void CreatesForComplexTypeFromDifferentAssemblies() - { - IsSuccess(); - } - - [Test] - public void CreatesForTypeThatUsesDifferentAssemblies() - { - IsSuccess(); - } - - [Test] - public void CreatesForClassFromDifferentAssembliesWithValidConstructor() - { - IsSuccess(); - } - - [Test] - public void CanUseCustomReadWriteForTypesFromDifferentAssemblies() - { - IsSuccess(); - } - } -} diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests_IsSuccess.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests_IsSuccess.meta new file mode 100644 index 000000000..78436b223 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests_IsSuccess.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7588efe7b5b844dab82a9f3fb4360e7a +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests~/CanUseCustomReadWriteForTypesFromDifferentAssemblies.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests_IsSuccess/CanUseCustomReadWriteForTypesFromDifferentAssemblies.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests~/CanUseCustomReadWriteForTypesFromDifferentAssemblies.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests_IsSuccess/CanUseCustomReadWriteForTypesFromDifferentAssemblies.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests_IsSuccess/CanUseCustomReadWriteForTypesFromDifferentAssemblies.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests_IsSuccess/CanUseCustomReadWriteForTypesFromDifferentAssemblies.cs.meta new file mode 100644 index 000000000..d70d24422 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests_IsSuccess/CanUseCustomReadWriteForTypesFromDifferentAssemblies.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b99201f4b462349fbbbaa30d63b7383c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests~/CreatesForClassFromDifferentAssemblies.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests_IsSuccess/CreatesForClassFromDifferentAssemblies.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests~/CreatesForClassFromDifferentAssemblies.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests_IsSuccess/CreatesForClassFromDifferentAssemblies.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests_IsSuccess/CreatesForClassFromDifferentAssemblies.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests_IsSuccess/CreatesForClassFromDifferentAssemblies.cs.meta new file mode 100644 index 000000000..69ba0e983 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests_IsSuccess/CreatesForClassFromDifferentAssemblies.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e098c02c1a4d543fea35eacb265bf185 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests~/CreatesForClassFromDifferentAssembliesWithValidConstructor.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests_IsSuccess/CreatesForClassFromDifferentAssembliesWithValidConstructor.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests~/CreatesForClassFromDifferentAssembliesWithValidConstructor.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests_IsSuccess/CreatesForClassFromDifferentAssembliesWithValidConstructor.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests_IsSuccess/CreatesForClassFromDifferentAssembliesWithValidConstructor.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests_IsSuccess/CreatesForClassFromDifferentAssembliesWithValidConstructor.cs.meta new file mode 100644 index 000000000..a382f1870 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests_IsSuccess/CreatesForClassFromDifferentAssembliesWithValidConstructor.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 66afc9de1e55649088cc2e0ddc87e2bd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests~/CreatesForComplexTypeFromDifferentAssemblies.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests_IsSuccess/CreatesForComplexTypeFromDifferentAssemblies.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests~/CreatesForComplexTypeFromDifferentAssemblies.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests_IsSuccess/CreatesForComplexTypeFromDifferentAssemblies.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests_IsSuccess/CreatesForComplexTypeFromDifferentAssemblies.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests_IsSuccess/CreatesForComplexTypeFromDifferentAssemblies.cs.meta new file mode 100644 index 000000000..1cc3ce301 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests_IsSuccess/CreatesForComplexTypeFromDifferentAssemblies.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0cca8bd4f61264c69b5cebb0d06e6ccd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests~/CreatesForStructFromDifferentAssemblies.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests_IsSuccess/CreatesForStructFromDifferentAssemblies.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests~/CreatesForStructFromDifferentAssemblies.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests_IsSuccess/CreatesForStructFromDifferentAssemblies.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests_IsSuccess/CreatesForStructFromDifferentAssemblies.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests_IsSuccess/CreatesForStructFromDifferentAssemblies.cs.meta new file mode 100644 index 000000000..fe30ea775 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests_IsSuccess/CreatesForStructFromDifferentAssemblies.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4fe20050b18ad437eaea18c81e4b7be5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests~/CreatesForTypeThatUsesDifferentAssemblies.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests_IsSuccess/CreatesForTypeThatUsesDifferentAssemblies.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests~/CreatesForTypeThatUsesDifferentAssemblies.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests_IsSuccess/CreatesForTypeThatUsesDifferentAssemblies.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests_IsSuccess/CreatesForTypeThatUsesDifferentAssemblies.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests_IsSuccess/CreatesForTypeThatUsesDifferentAssemblies.cs.meta new file mode 100644 index 000000000..a2c4f8f01 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterAnotherAssemblyTests_IsSuccess/CreatesForTypeThatUsesDifferentAssemblies.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d2ac5c5eaeb6241ccb87cd4d7b104f5b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests.cs index ac1cddd0a..6cd4e232e 100644 --- a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests.cs +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests.cs @@ -4,30 +4,6 @@ namespace Mirror.Weaver.Tests { public class WeaverGeneratedReaderWriterTests : WeaverTestsBuildFromTestName { - [Test] - public void CreatesForStructs() - { - IsSuccess(); - } - - [Test] - public void CreatesForClass() - { - IsSuccess(); - } - - [Test] - public void CreatesForClassInherited() - { - IsSuccess(); - } - - [Test] - public void CreatesForClassWithValidConstructor() - { - IsSuccess(); - } - [Test] public void GivesErrorForClassWithNoValidConstructor() { @@ -35,12 +11,6 @@ public void GivesErrorForClassWithNoValidConstructor() "GeneratedReaderWriter.GivesErrorForClassWithNoValidConstructor.SomeOtherData"); } - [Test] - public void CreatesForInheritedFromScriptableObject() - { - IsSuccess(); - } - [Test] public void GivesErrorWhenUsingUnityAsset() { @@ -92,13 +62,6 @@ public void GivesErrorWhenUsingTypeInheritedFromMonoBehaviour() // "GeneratedReaderWriter.GivesErrorWhenUsingTypeInheritedFromMonoBehaviour.MyBehaviour"); } - [Test] - public void ExcludesNonSerializedFields() - { - // we test this by having a not allowed type in the class, but mark it with NonSerialized - IsSuccess(); - } - [Test] public void GivesErrorWhenUsingInterface() { @@ -109,12 +72,6 @@ public void GivesErrorWhenUsingInterface() // "GeneratedReaderWriter.GivesErrorWhenUsingInterface.IData"); } - [Test] - public void CanUseCustomReadWriteForInterfaces() - { - IsSuccess(); - } - [Test] public void GivesErrorWhenUsingAbstractClass() { @@ -125,36 +82,6 @@ public void GivesErrorWhenUsingAbstractClass() // "GeneratedReaderWriter.GivesErrorWhenUsingAbstractClass.DataBase"); } - [Test] - public void CanUseCustomReadWriteForAbstractClass() - { - IsSuccess(); - } - - [Test] - public void CreatesForEnums() - { - IsSuccess(); - } - - [Test] - public void CreatesForArraySegment() - { - IsSuccess(); - } - - [Test] - public void CreatesForStructArraySegment() - { - IsSuccess(); - } - - [Test] - public void GivesErrorForJaggedArray() - { - IsSuccess(); - } - [Test] public void GivesErrorForMultidimensionalArray() { @@ -182,18 +109,6 @@ public void GivesErrorForInvalidArraySegmentType() // "System.ArraySegment`1"); } - [Test] - public void CreatesForList() - { - IsSuccess(); - } - - [Test] - public void CreatesForStructList() - { - IsSuccess(); - } - [Test] public void GivesErrorForInvalidListType() { diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess.meta new file mode 100644 index 000000000..321d91334 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 481ded00d806459b98c56f88b4c63cac +timeCreated: 1643082170 \ No newline at end of file diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests~/CanUseCustomReadWriteForAbstractClass.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CanUseCustomReadWriteForAbstractClass.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests~/CanUseCustomReadWriteForAbstractClass.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CanUseCustomReadWriteForAbstractClass.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CanUseCustomReadWriteForAbstractClass.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CanUseCustomReadWriteForAbstractClass.cs.meta new file mode 100644 index 000000000..38342051d --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CanUseCustomReadWriteForAbstractClass.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ec3aff614cf064fcfb647c5bf2427ab9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests~/CanUseCustomReadWriteForInterfaces.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CanUseCustomReadWriteForInterfaces.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests~/CanUseCustomReadWriteForInterfaces.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CanUseCustomReadWriteForInterfaces.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CanUseCustomReadWriteForInterfaces.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CanUseCustomReadWriteForInterfaces.cs.meta new file mode 100644 index 000000000..86c8e62de --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CanUseCustomReadWriteForInterfaces.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d362bab10072f4254b5b5ec2dec6a219 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests~/CreatesForArraySegment.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForArraySegment.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests~/CreatesForArraySegment.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForArraySegment.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForArraySegment.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForArraySegment.cs.meta new file mode 100644 index 000000000..8189ae88d --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForArraySegment.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b8e170776a26948e5a371acd9d108e23 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests~/CreatesForClass.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForClass.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests~/CreatesForClass.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForClass.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForClass.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForClass.cs.meta new file mode 100644 index 000000000..5a1dae021 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForClass.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c40f8d67a65164c4cbee03c0e0e25238 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests~/CreatesForClassInherited.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForClassInherited.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests~/CreatesForClassInherited.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForClassInherited.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForClassInherited.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForClassInherited.cs.meta new file mode 100644 index 000000000..63021aa18 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForClassInherited.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7403ae2e88bb94bb68fb52724eb80b9e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests~/CreatesForClassWithValidConstructor.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForClassWithValidConstructor.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests~/CreatesForClassWithValidConstructor.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForClassWithValidConstructor.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForClassWithValidConstructor.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForClassWithValidConstructor.cs.meta new file mode 100644 index 000000000..1f272c650 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForClassWithValidConstructor.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c8bdbd0be145445769dd26795ebb1e14 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests~/CreatesForEnums.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForEnums.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests~/CreatesForEnums.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForEnums.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForEnums.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForEnums.cs.meta new file mode 100644 index 000000000..65782e104 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForEnums.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9e9b99d242e2d4ec791120b90992f9f9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests~/CreatesForInheritedFromScriptableObject.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForInheritedFromScriptableObject.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests~/CreatesForInheritedFromScriptableObject.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForInheritedFromScriptableObject.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForInheritedFromScriptableObject.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForInheritedFromScriptableObject.cs.meta new file mode 100644 index 000000000..b3ac125e8 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForInheritedFromScriptableObject.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: eaa774dd59f314483be65bb1fecaf240 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests~/CreatesForList.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForList.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests~/CreatesForList.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForList.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForList.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForList.cs.meta new file mode 100644 index 000000000..210bcc75f --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForList.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 01e98a567df124dbdae4da004b786676 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests~/CreatesForStructArraySegment.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForStructArraySegment.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests~/CreatesForStructArraySegment.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForStructArraySegment.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForStructArraySegment.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForStructArraySegment.cs.meta new file mode 100644 index 000000000..41b8c8ed8 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForStructArraySegment.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4115a88d5bbc6468193943b69c777be5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests~/CreatesForStructList.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForStructList.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests~/CreatesForStructList.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForStructList.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForStructList.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForStructList.cs.meta new file mode 100644 index 000000000..cbbd21de2 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForStructList.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5794897895bef48588d561811d35fe3a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests~/CreatesForStructs.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForStructs.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests~/CreatesForStructs.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForStructs.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForStructs.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForStructs.cs.meta new file mode 100644 index 000000000..a22041537 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/CreatesForStructs.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 53df702fb349b4529bdc8d0ae2795cbc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests~/ExcludesNonSerializedFields.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/ExcludesNonSerializedFields.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests~/ExcludesNonSerializedFields.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/ExcludesNonSerializedFields.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/ExcludesNonSerializedFields.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/ExcludesNonSerializedFields.cs.meta new file mode 100644 index 000000000..aef32872c --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/ExcludesNonSerializedFields.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a30a5f4499dde487baad74ec2eb09279 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests~/GivesErrorForJaggedArray.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/GivesErrorForJaggedArray.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests~/GivesErrorForJaggedArray.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/GivesErrorForJaggedArray.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/GivesErrorForJaggedArray.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/GivesErrorForJaggedArray.cs.meta new file mode 100644 index 000000000..ec4f4c051 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverGeneratedReaderWriterTests_IsSuccess/GivesErrorForJaggedArray.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bfb5cd2f56ad544369df0ec231dd91e8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests.cs index 10c4fb2b8..21db09456 100644 --- a/Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests.cs +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests.cs @@ -4,24 +4,6 @@ namespace Mirror.Weaver.Tests { public class WeaverMessageTests : WeaverTestsBuildFromTestName { - [Test] - public void MessageValid() - { - IsSuccess(); - } - - [Test] - public void MessageWithBaseClass() - { - IsSuccess(); - } - - [Test] - public void MessageSelfReferencing() - { - IsSuccess(); - } - [Test] public void MessageMemberGeneric() { @@ -43,18 +25,6 @@ public void MessageMemberInterface() HasError("Cannot generate writer for interface SuperCoolInterface. Use a supported type or provide a custom writer", "WeaverMessageTests.MessageMemberInterface.SuperCoolInterface"); } - - [Test] - public void MessageNestedInheritance() - { - IsSuccess(); - } - - [Test] - public void AbstractMessageMethods() - { - IsSuccess(); - } } } diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests_IsSuccess.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests_IsSuccess.meta new file mode 100644 index 000000000..1e58f68c3 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests_IsSuccess.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 189a9592d5ca4459aadeb4933ad579b4 +timeCreated: 1643082574 \ No newline at end of file diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests~/AbstractMessageMethods.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests_IsSuccess/AbstractMessageMethods.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests~/AbstractMessageMethods.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests_IsSuccess/AbstractMessageMethods.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests_IsSuccess/AbstractMessageMethods.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests_IsSuccess/AbstractMessageMethods.cs.meta new file mode 100644 index 000000000..2e91fefcb --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests_IsSuccess/AbstractMessageMethods.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e2526f960017544a9ac51109e40e5ca2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests~/MessageNestedInheritance.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests_IsSuccess/MessageNestedInheritance.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests~/MessageNestedInheritance.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests_IsSuccess/MessageNestedInheritance.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests_IsSuccess/MessageNestedInheritance.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests_IsSuccess/MessageNestedInheritance.cs.meta new file mode 100644 index 000000000..f8259e0b0 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests_IsSuccess/MessageNestedInheritance.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 57ca45dd13a334f3e82bec8161e2a309 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests~/MessageSelfReferencing.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests_IsSuccess/MessageSelfReferencing.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests~/MessageSelfReferencing.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests_IsSuccess/MessageSelfReferencing.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests_IsSuccess/MessageSelfReferencing.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests_IsSuccess/MessageSelfReferencing.cs.meta new file mode 100644 index 000000000..64a2e846f --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests_IsSuccess/MessageSelfReferencing.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 80d871bb7d76d4ba4bb61c4463a18611 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests~/MessageValid.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests_IsSuccess/MessageValid.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests~/MessageValid.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests_IsSuccess/MessageValid.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests_IsSuccess/MessageValid.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests_IsSuccess/MessageValid.cs.meta new file mode 100644 index 000000000..eb84a92d6 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests_IsSuccess/MessageValid.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8f9e80c0fd45740d1923469de369a8d3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests~/MessageWithBaseClass.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests_IsSuccess/MessageWithBaseClass.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests~/MessageWithBaseClass.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests_IsSuccess/MessageWithBaseClass.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests_IsSuccess/MessageWithBaseClass.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests_IsSuccess/MessageWithBaseClass.cs.meta new file mode 100644 index 000000000..c457c158f --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverMessageTests_IsSuccess/MessageWithBaseClass.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7ad4ec02f843347b7bbbc9b85d455124 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests.cs index cf291210f..3469e7bd5 100644 --- a/Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests.cs +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests.cs @@ -4,12 +4,6 @@ namespace Mirror.Weaver.Tests { public class WeaverMonoBehaviourTests : WeaverTestsBuildFromTestName { - [Test] - public void MonoBehaviourValid() - { - IsSuccess(); - } - [Test] public void MonoBehaviourSyncVar() { @@ -44,29 +38,5 @@ public void MonoBehaviourTargetRpc() HasError("TargetRpc TargetThisCantBeOutsideNetworkBehaviour must be declared inside a NetworkBehaviour", "System.Void WeaverMonoBehaviourTests.MonoBehaviourTargetRpc.MonoBehaviourTargetRpc::TargetThisCantBeOutsideNetworkBehaviour(Mirror.NetworkConnection)"); } - - [Test] - public void MonoBehaviourServer() - { - IsSuccess(); - } - - [Test] - public void MonoBehaviourServerCallback() - { - IsSuccess(); - } - - [Test] - public void MonoBehaviourClient() - { - IsSuccess(); - } - - [Test] - public void MonoBehaviourClientCallback() - { - IsSuccess(); - } } } diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests_IsSuccess.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests_IsSuccess.meta new file mode 100644 index 000000000..fb0609a12 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests_IsSuccess.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: ec2bed0a50964e698c382457a790ef26 +timeCreated: 1643082698 \ No newline at end of file diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests~/MonoBehaviourClient.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests_IsSuccess/MonoBehaviourClient.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests~/MonoBehaviourClient.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests_IsSuccess/MonoBehaviourClient.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests_IsSuccess/MonoBehaviourClient.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests_IsSuccess/MonoBehaviourClient.cs.meta new file mode 100644 index 000000000..3d1d9bcf3 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests_IsSuccess/MonoBehaviourClient.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2c0dbb08bb37f4bc0bdf0c2b0c414adb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests~/MonoBehaviourClientCallback.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests_IsSuccess/MonoBehaviourClientCallback.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests~/MonoBehaviourClientCallback.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests_IsSuccess/MonoBehaviourClientCallback.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests_IsSuccess/MonoBehaviourClientCallback.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests_IsSuccess/MonoBehaviourClientCallback.cs.meta new file mode 100644 index 000000000..332609184 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests_IsSuccess/MonoBehaviourClientCallback.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b06345372a7df4b31b37cac6fc6e3b55 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests~/MonoBehaviourServer.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests_IsSuccess/MonoBehaviourServer.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests~/MonoBehaviourServer.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests_IsSuccess/MonoBehaviourServer.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests_IsSuccess/MonoBehaviourServer.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests_IsSuccess/MonoBehaviourServer.cs.meta new file mode 100644 index 000000000..11c1c1334 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests_IsSuccess/MonoBehaviourServer.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 06ff2af14a7e04598b10c38cebb0dfd8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests~/MonoBehaviourServerCallback.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests_IsSuccess/MonoBehaviourServerCallback.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests~/MonoBehaviourServerCallback.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests_IsSuccess/MonoBehaviourServerCallback.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests_IsSuccess/MonoBehaviourServerCallback.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests_IsSuccess/MonoBehaviourServerCallback.cs.meta new file mode 100644 index 000000000..7ab973762 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests_IsSuccess/MonoBehaviourServerCallback.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 267c93d64d13540e1a8440b0327bc4a3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests~/MonoBehaviourValid.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests_IsSuccess/MonoBehaviourValid.cs similarity index 72% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests~/MonoBehaviourValid.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests_IsSuccess/MonoBehaviourValid.cs index aff08cc67..5268ac902 100644 --- a/Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests~/MonoBehaviourValid.cs +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests_IsSuccess/MonoBehaviourValid.cs @@ -4,6 +4,8 @@ namespace WeaverMonoBehaviourTests.MonoBehaviourValid { class MonoBehaviourValid : MonoBehaviour { +#pragma warning disable CS0414 int monkeys = 12; +#pragma warning restore CS0414 } } diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests_IsSuccess/MonoBehaviourValid.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests_IsSuccess/MonoBehaviourValid.cs.meta new file mode 100644 index 000000000..458a598a3 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests_IsSuccess/MonoBehaviourValid.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 92be36d5dc0cd45a3a73c7185c51e4ff +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests.cs index b7ee82ef9..a794a2d7e 100644 --- a/Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests.cs +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests.cs @@ -4,18 +4,6 @@ namespace Mirror.Weaver.Tests { public class WeaverNetworkBehaviourTests : WeaverTestsBuildFromTestName { - [Test] - public void NetworkBehaviourValid() - { - IsSuccess(); - } - - [Test] - public void NetworkBehaviourAbstractBaseValid() - { - IsSuccess(); - } - [Test] public void NetworkBehaviourGeneric() { @@ -115,18 +103,6 @@ public void NetworkBehaviourTargetRpcParamComponent() "System.Void WeaverNetworkBehaviourTests.NetworkBehaviourTargetRpcParamComponent.NetworkBehaviourTargetRpcParamComponent::TargetRpcCantHaveParamComponent(Mirror.NetworkConnection,WeaverNetworkBehaviourTests.NetworkBehaviourTargetRpcParamComponent.NetworkBehaviourTargetRpcParamComponent/ComponentClass)"); } - [Test] - public void NetworkBehaviourTargetRpcParamNetworkConnection() - { - IsSuccess(); - } - - [Test] - public void NetworkBehaviourTargetRpcDuplicateName() - { - IsSuccess(); - } - [Test] public void NetworkBehaviourClientRpcGenericParam() { @@ -207,12 +183,6 @@ public void NetworkBehaviourClientRpcParamNetworkConnection() "System.Void WeaverNetworkBehaviourTests.NetworkBehaviourClientRpcParamNetworkConnection.NetworkBehaviourClientRpcParamNetworkConnection::RpcCantHaveParamOptional(Mirror.NetworkConnection)"); } - [Test] - public void NetworkBehaviourClientRpcDuplicateName() - { - IsSuccess(); - } - [Test] public void NetworkBehaviourCmdParamOut() { @@ -269,11 +239,5 @@ public void NetworkBehaviourCmdParamNetworkConnection() HasError("CmdCantHaveParamOptional has invalid parameter monkeyCon, Cannot pass NetworkConnections. Instead use 'NetworkConnectionToClient conn = null' to get the sender's connection on the server", "System.Void WeaverNetworkBehaviourTests.NetworkBehaviourCmdParamNetworkConnection.NetworkBehaviourCmdParamNetworkConnection::CmdCantHaveParamOptional(Mirror.NetworkConnection)"); } - - [Test] - public void NetworkBehaviourCmdDuplicateName() - { - IsSuccess(); - } } } diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests_IsValid.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests_IsValid.meta new file mode 100644 index 000000000..f2050a176 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests_IsValid.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: e8c0f412bf9048d7a9992621f6a0d8de +timeCreated: 1643082894 \ No newline at end of file diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests~/NetworkBehaviourAbstractBaseValid.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests_IsValid/NetworkBehaviourAbstractBaseValid.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests~/NetworkBehaviourAbstractBaseValid.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests_IsValid/NetworkBehaviourAbstractBaseValid.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests_IsValid/NetworkBehaviourAbstractBaseValid.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests_IsValid/NetworkBehaviourAbstractBaseValid.cs.meta new file mode 100644 index 000000000..8221d53cb --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests_IsValid/NetworkBehaviourAbstractBaseValid.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c1f37afe8878840bd9369afa4d017ba8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests~/NetworkBehaviourClientRpcDuplicateName.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests_IsValid/NetworkBehaviourClientRpcDuplicateName.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests~/NetworkBehaviourClientRpcDuplicateName.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests_IsValid/NetworkBehaviourClientRpcDuplicateName.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests_IsValid/NetworkBehaviourClientRpcDuplicateName.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests_IsValid/NetworkBehaviourClientRpcDuplicateName.cs.meta new file mode 100644 index 000000000..aa12a0f8b --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests_IsValid/NetworkBehaviourClientRpcDuplicateName.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 47702bfe436d8462bb5b937eb08ea120 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests~/NetworkBehaviourTargetRpcDuplicateName.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests_IsValid/NetworkBehaviourTargetRpcDuplicateName.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests~/NetworkBehaviourTargetRpcDuplicateName.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests_IsValid/NetworkBehaviourTargetRpcDuplicateName.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests_IsValid/NetworkBehaviourTargetRpcDuplicateName.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests_IsValid/NetworkBehaviourTargetRpcDuplicateName.cs.meta new file mode 100644 index 000000000..1597143f9 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests_IsValid/NetworkBehaviourTargetRpcDuplicateName.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b920ec9538e4b42cda6116d5d6238b6b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests~/NetworkBehaviourTargetRpcParamNetworkConnection.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests_IsValid/NetworkBehaviourTargetRpcParamNetworkConnection.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests~/NetworkBehaviourTargetRpcParamNetworkConnection.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests_IsValid/NetworkBehaviourTargetRpcParamNetworkConnection.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests_IsValid/NetworkBehaviourTargetRpcParamNetworkConnection.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests_IsValid/NetworkBehaviourTargetRpcParamNetworkConnection.cs.meta new file mode 100644 index 000000000..d61ef2a66 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests_IsValid/NetworkBehaviourTargetRpcParamNetworkConnection.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a608f5852eaf44fba9f1f855abc2a3ec +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests~/NetworkBehaviourValid.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests_IsValid/NetworkBehaviourValid.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests~/NetworkBehaviourValid.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests_IsValid/NetworkBehaviourValid.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests_IsValid/NetworkBehaviourValid.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests_IsValid/NetworkBehaviourValid.cs.meta new file mode 100644 index 000000000..db4c8619d --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverNetworkBehaviourTests_IsValid/NetworkBehaviourValid.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2b7fdf376724a439f9524301a442e6f3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests.cs index 352c73090..e7f6cd7c4 100644 --- a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests.cs +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests.cs @@ -5,42 +5,6 @@ namespace Mirror.Weaver.Tests // Some tests for SyncObjects are in WeaverSyncListTests and apply to SyncDictionary too public class WeaverSyncDictionaryTests : WeaverTestsBuildFromTestName { - [Test] - public void SyncDictionary() - { - IsSuccess(); - } - - [Test] - public void SyncDictionaryGenericAbstractInheritance() - { - IsSuccess(); - } - - [Test] - public void SyncDictionaryGenericInheritance() - { - IsSuccess(); - } - - [Test] - public void SyncDictionaryInheritance() - { - IsSuccess(); - } - - [Test] - public void SyncDictionaryStructKey() - { - IsSuccess(); - } - - [Test] - public void SyncDictionaryStructItem() - { - IsSuccess(); - } - [Test] public void SyncDictionaryErrorForGenericStructKey() { @@ -58,23 +22,5 @@ public void SyncDictionaryErrorForGenericStructItem() HasError("Cannot generate writer for generic type MyGenericStruct`1. Use a supported type or provide a custom writer", "WeaverSyncDictionaryTests.SyncDictionaryErrorForGenericStructItem.SyncDictionaryErrorForGenericStructItem/MyGenericStruct`1"); } - - [Test] - public void SyncDictionaryGenericStructKeyWithCustomMethods() - { - IsSuccess(); - } - - [Test] - public void SyncDictionaryGenericStructItemWithCustomMethods() - { - IsSuccess(); - } - - [Test] - public void GenericSyncDictionaryCanBeUsed() - { - IsSuccess(); - } } } diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess.meta new file mode 100644 index 000000000..e47cffdeb --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 213434594cfc42e6a93f05a7d16f15fd +timeCreated: 1643083057 \ No newline at end of file diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests~/GenericSyncDictionaryCanBeUsed.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/GenericSyncDictionaryCanBeUsed.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests~/GenericSyncDictionaryCanBeUsed.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/GenericSyncDictionaryCanBeUsed.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/GenericSyncDictionaryCanBeUsed.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/GenericSyncDictionaryCanBeUsed.cs.meta new file mode 100644 index 000000000..16e37dfaf --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/GenericSyncDictionaryCanBeUsed.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b80f4132d92cf42dfbf75cad97d84513 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests~/SyncDictionary.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionary.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests~/SyncDictionary.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionary.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionary.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionary.cs.meta new file mode 100644 index 000000000..32b959aba --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionary.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8b5d1ec150fb64234b3cdbae16ebb12f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests~/SyncDictionaryGenericAbstractInheritance.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryGenericAbstractInheritance.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests~/SyncDictionaryGenericAbstractInheritance.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryGenericAbstractInheritance.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryGenericAbstractInheritance.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryGenericAbstractInheritance.cs.meta new file mode 100644 index 000000000..ac85cbc65 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryGenericAbstractInheritance.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e951e9979768745aeb9a6dcf260dd20c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests~/SyncDictionaryGenericInheritance.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryGenericInheritance.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests~/SyncDictionaryGenericInheritance.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryGenericInheritance.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryGenericInheritance.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryGenericInheritance.cs.meta new file mode 100644 index 000000000..617a87018 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryGenericInheritance.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6b7161b20ae9041b6a5dc17074967813 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests~/SyncDictionaryGenericStructItemWithCustomMethods.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryGenericStructItemWithCustomMethods.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests~/SyncDictionaryGenericStructItemWithCustomMethods.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryGenericStructItemWithCustomMethods.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryGenericStructItemWithCustomMethods.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryGenericStructItemWithCustomMethods.cs.meta new file mode 100644 index 000000000..b6db60497 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryGenericStructItemWithCustomMethods.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4eb89b9d2c0db4ebd9e6f8f4bc5d4f24 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests~/SyncDictionaryGenericStructKeyWithCustomMethods.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryGenericStructKeyWithCustomMethods.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests~/SyncDictionaryGenericStructKeyWithCustomMethods.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryGenericStructKeyWithCustomMethods.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryGenericStructKeyWithCustomMethods.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryGenericStructKeyWithCustomMethods.cs.meta new file mode 100644 index 000000000..6e5e17258 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryGenericStructKeyWithCustomMethods.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ce03c1e3290a94e2390a4bf1ec2982d6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests~/SyncDictionaryInheritance.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryInheritance.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests~/SyncDictionaryInheritance.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryInheritance.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryInheritance.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryInheritance.cs.meta new file mode 100644 index 000000000..8ff9429c3 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryInheritance.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1cdebedceef1e4dbb8438b4d9ef22d01 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests~/SyncDictionaryStructItem.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryStructItem.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests~/SyncDictionaryStructItem.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryStructItem.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryStructItem.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryStructItem.cs.meta new file mode 100644 index 000000000..840061b39 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryStructItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d83c6882b2bef4a37a9592f6895a14f1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests~/SyncDictionaryStructKey.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryStructKey.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests~/SyncDictionaryStructKey.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryStructKey.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryStructKey.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryStructKey.cs.meta new file mode 100644 index 000000000..e23b74cc3 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncDictionaryTests_IsSuccess/SyncDictionaryStructKey.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c1923cdb541a94e9dad0b19cfcd53ea4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests.cs index 07c3aaa00..d6326e6c1 100644 --- a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests.cs +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests.cs @@ -4,66 +4,6 @@ namespace Mirror.Weaver.Tests { public class WeaverSyncListTests : WeaverTestsBuildFromTestName { - [Test] - public void SyncList() - { - IsSuccess(); - } - - [Test] - public void SyncListByteValid() - { - IsSuccess(); - } - - [Test] - public void SyncListGenericAbstractInheritance() - { - IsSuccess(); - } - - [Test] - public void SyncListGenericInheritance() - { - IsSuccess(); - } - - [Test] - public void SyncListGenericInheritanceWithMultipleGeneric() - { - IsSuccess(); - } - - [Test] - public void SyncListInheritance() - { - IsSuccess(); - } - - [Test] - public void SyncListMissingParamlessCtor() - { - IsSuccess(); - } - - [Test] - public void SyncListMissingParamlessCtorManuallyInitialized() - { - IsSuccess(); - } - - [Test] - public void SyncListNestedStruct() - { - IsSuccess(); - } - - [Test] - public void SyncListNestedInAbstractClass() - { - IsSuccess(); - } - [Test] public void SyncListNestedInAbstractClassWithInvalid() { @@ -76,12 +16,6 @@ public void SyncListNestedInAbstractClassWithInvalid() "UnityEngine.Object"); } - [Test] - public void SyncListNestedInStruct() - { - IsSuccess(); - } - [Test] public void SyncListNestedInStructWithInvalid() { @@ -92,13 +26,6 @@ public void SyncListNestedInStructWithInvalid() "UnityEngine.Object WeaverSyncListTests.SyncListNestedInStructWithInvalid.SyncListNestedInStructWithInvalid/SomeData::target"); HasError("Cannot generate writer for Object. Use a supported type or provide a custom writer", "UnityEngine.Object"); - - } - - [Test] - public void SyncListStruct() - { - IsSuccess(); } [Test] @@ -110,6 +37,8 @@ public void SyncListErrorForGenericStruct() "WeaverSyncListTests.SyncListErrorForGenericStruct.SyncListErrorForGenericStruct/MyGenericStruct`1"); } + // IsSuccess test, but still in here because it shows an error + // if we move to regular C# [Test] public void SyncListGenericStructWithCustomMethods() { @@ -125,16 +54,12 @@ public void SyncListErrorForInterface() "WeaverSyncListTests.SyncListErrorForInterface.MyInterface"); } + // IsSuccess test, but still in here because it shows an error + // if we move to regular C# [Test] public void SyncListInterfaceWithCustomMethods() { IsSuccess(); } - - [Test] - public void GenericSyncListCanBeUsed() - { - IsSuccess(); - } } } diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess.meta new file mode 100644 index 000000000..16fca91c4 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: b5dd2567fffc48f9a1ebdf53819aa513 +timeCreated: 1643083178 \ No newline at end of file diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests~/GenericSyncListCanBeUsed.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/GenericSyncListCanBeUsed.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests~/GenericSyncListCanBeUsed.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/GenericSyncListCanBeUsed.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/GenericSyncListCanBeUsed.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/GenericSyncListCanBeUsed.cs.meta new file mode 100644 index 000000000..21cb0cf80 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/GenericSyncListCanBeUsed.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 42f9700f4998548c498565f7b55edbb3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests~/SyncList.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncList.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests~/SyncList.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncList.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncList.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncList.cs.meta new file mode 100644 index 000000000..cc1414223 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncList.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2de457dfaaa35451fa002b19623ea678 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests~/SyncListByteValid.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListByteValid.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests~/SyncListByteValid.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListByteValid.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListByteValid.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListByteValid.cs.meta new file mode 100644 index 000000000..44398f4b5 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListByteValid.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 639ccd9a8ac3e4d669b11291a9d0cf39 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests~/SyncListGenericAbstractInheritance.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListGenericAbstractInheritance.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests~/SyncListGenericAbstractInheritance.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListGenericAbstractInheritance.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListGenericAbstractInheritance.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListGenericAbstractInheritance.cs.meta new file mode 100644 index 000000000..f58da9aae --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListGenericAbstractInheritance.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ac1eb2763b78a442d82c1e5c6ec06cbb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests~/SyncListGenericInheritance.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListGenericInheritance.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests~/SyncListGenericInheritance.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListGenericInheritance.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListGenericInheritance.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListGenericInheritance.cs.meta new file mode 100644 index 000000000..2851a19e9 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListGenericInheritance.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6a6efc238f8074df3b8c0628c49e9b23 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests~/SyncListGenericInheritanceWithMultipleGeneric.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListGenericInheritanceWithMultipleGeneric.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests~/SyncListGenericInheritanceWithMultipleGeneric.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListGenericInheritanceWithMultipleGeneric.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListGenericInheritanceWithMultipleGeneric.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListGenericInheritanceWithMultipleGeneric.cs.meta new file mode 100644 index 000000000..207808c45 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListGenericInheritanceWithMultipleGeneric.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ebef79e4b70014d799f0ccb14b544dca +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests~/SyncListInheritance.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListInheritance.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests~/SyncListInheritance.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListInheritance.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListInheritance.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListInheritance.cs.meta new file mode 100644 index 000000000..55a08e4da --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListInheritance.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d98ef375fb0614946906b2f438a43d82 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests~/SyncListMissingParamlessCtor.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListMissingParamlessCtor.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests~/SyncListMissingParamlessCtor.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListMissingParamlessCtor.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListMissingParamlessCtor.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListMissingParamlessCtor.cs.meta new file mode 100644 index 000000000..50fd94e17 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListMissingParamlessCtor.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 57b22f7b42094409a9a1158aabad83d0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests~/SyncListMissingParamlessCtorManuallyInitialized.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListMissingParamlessCtorManuallyInitialized.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests~/SyncListMissingParamlessCtorManuallyInitialized.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListMissingParamlessCtorManuallyInitialized.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListMissingParamlessCtorManuallyInitialized.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListMissingParamlessCtorManuallyInitialized.cs.meta new file mode 100644 index 000000000..046be8783 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListMissingParamlessCtorManuallyInitialized.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 762689087c636418e8e261eef542dcb3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests~/SyncListNestedInAbstractClass.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListNestedInAbstractClass.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests~/SyncListNestedInAbstractClass.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListNestedInAbstractClass.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListNestedInAbstractClass.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListNestedInAbstractClass.cs.meta new file mode 100644 index 000000000..1e38710ef --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListNestedInAbstractClass.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 47ed2f59dc03d417ab513677ae404a18 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests~/SyncListNestedInStruct.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListNestedInStruct.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests~/SyncListNestedInStruct.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListNestedInStruct.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListNestedInStruct.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListNestedInStruct.cs.meta new file mode 100644 index 000000000..038d182de --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListNestedInStruct.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 18f2e8d5c893344259ac8b2e17cb6d3f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests~/SyncListNestedStruct.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListNestedStruct.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests~/SyncListNestedStruct.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListNestedStruct.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListNestedStruct.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListNestedStruct.cs.meta new file mode 100644 index 000000000..9107dbc39 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListNestedStruct.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6a60a4daf5b784bafadc07ffc475b596 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests~/SyncListStruct.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListStruct.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests~/SyncListStruct.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListStruct.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListStruct.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListStruct.cs.meta new file mode 100644 index 000000000..e26869672 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncListTests_IsSuccess/SyncListStruct.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0bfa51174087b486ebb97cf94dc702a4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncObjectsTests.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncObjectsTests.cs index 84797608d..b9de424b0 100644 --- a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncObjectsTests.cs +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncObjectsTests.cs @@ -4,12 +4,6 @@ namespace Mirror.Weaver.Tests { public class WeaverSyncObjectsTests : WeaverTestsBuildFromTestName { - [Test] - public void SyncObjectsExactlyMax() - { - IsSuccess(); - } - [Test] public void SyncObjectsMoreThanMax() { diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncObjectsTests_IsSuccess.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncObjectsTests_IsSuccess.meta new file mode 100644 index 000000000..af83855bc --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncObjectsTests_IsSuccess.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: b6889a5a83d34ab1b7cec95d6d437efd +timeCreated: 1643083530 \ No newline at end of file diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncObjectsTests~/SyncObjectsExactlyMax.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncObjectsTests_IsSuccess/SyncObjectsExactlyMax.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncObjectsTests~/SyncObjectsExactlyMax.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncObjectsTests_IsSuccess/SyncObjectsExactlyMax.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncObjectsTests~/SyncObjectsExactlyMax.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncObjectsTests_IsSuccess/SyncObjectsExactlyMax.cs.meta similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncObjectsTests~/SyncObjectsExactlyMax.cs.meta rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncObjectsTests_IsSuccess/SyncObjectsExactlyMax.cs.meta diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests.cs deleted file mode 100644 index 1ed833992..000000000 --- a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests.cs +++ /dev/null @@ -1,44 +0,0 @@ -using NUnit.Framework; - -namespace Mirror.Weaver.Tests -{ - // Some tests for SyncObjects are in WeaverSyncListTests and apply to SyncDictionary too - public class WeaverSyncSetTests : WeaverTestsBuildFromTestName - { - [Test] - public void SyncSet() - { - IsSuccess(); - } - - [Test] - public void SyncSetByteValid() - { - IsSuccess(); - } - - [Test] - public void SyncSetGenericAbstractInheritance() - { - IsSuccess(); - } - - [Test] - public void SyncSetGenericInheritance() - { - IsSuccess(); - } - - [Test] - public void SyncSetInheritance() - { - IsSuccess(); - } - - [Test] - public void SyncSetStruct() - { - IsSuccess(); - } - } -} diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests_IsSuccess.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests_IsSuccess.meta new file mode 100644 index 000000000..70e7449f6 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests_IsSuccess.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ba9b37979cbbf4e3987f40254af0b291 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests~/SyncSet.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests_IsSuccess/SyncSet.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests~/SyncSet.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests_IsSuccess/SyncSet.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests_IsSuccess/SyncSet.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests_IsSuccess/SyncSet.cs.meta new file mode 100644 index 000000000..d146af972 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests_IsSuccess/SyncSet.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8f81e2e962dfc4eaa8650c8bb1c32512 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests~/SyncSetByteValid.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests_IsSuccess/SyncSetByteValid.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests~/SyncSetByteValid.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests_IsSuccess/SyncSetByteValid.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests_IsSuccess/SyncSetByteValid.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests_IsSuccess/SyncSetByteValid.cs.meta new file mode 100644 index 000000000..8b58d0c57 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests_IsSuccess/SyncSetByteValid.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f4eb6f81ca19c4af69e957887a8cd83d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests~/SyncSetGenericAbstractInheritance.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests_IsSuccess/SyncSetGenericAbstractInheritance.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests~/SyncSetGenericAbstractInheritance.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests_IsSuccess/SyncSetGenericAbstractInheritance.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests_IsSuccess/SyncSetGenericAbstractInheritance.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests_IsSuccess/SyncSetGenericAbstractInheritance.cs.meta new file mode 100644 index 000000000..62885aba8 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests_IsSuccess/SyncSetGenericAbstractInheritance.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2aa229fc500d04d2884bcef3b1aaa81a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests~/SyncSetGenericInheritance.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests_IsSuccess/SyncSetGenericInheritance.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests~/SyncSetGenericInheritance.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests_IsSuccess/SyncSetGenericInheritance.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests_IsSuccess/SyncSetGenericInheritance.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests_IsSuccess/SyncSetGenericInheritance.cs.meta new file mode 100644 index 000000000..8e107b9d4 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests_IsSuccess/SyncSetGenericInheritance.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 03b44aff9b61b44768bcd3871e43f479 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests~/SyncSetInheritance.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests_IsSuccess/SyncSetInheritance.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests~/SyncSetInheritance.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests_IsSuccess/SyncSetInheritance.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests_IsSuccess/SyncSetInheritance.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests_IsSuccess/SyncSetInheritance.cs.meta new file mode 100644 index 000000000..d16e42611 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests_IsSuccess/SyncSetInheritance.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b0c1252122cf5434589e95b6eb4e4b44 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests~/SyncSetStruct.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests_IsSuccess/SyncSetStruct.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests~/SyncSetStruct.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests_IsSuccess/SyncSetStruct.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests_IsSuccess/SyncSetStruct.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests_IsSuccess/SyncSetStruct.cs.meta new file mode 100644 index 000000000..b81f8e85c --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncSetTests_IsSuccess/SyncSetStruct.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 91c50a30665544ce9863a61c334c116c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests.cs index ccb49cef2..95f3c8a74 100644 --- a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests.cs +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests.cs @@ -4,48 +4,6 @@ namespace Mirror.Weaver.Tests { public class WeaverSyncVarAttributeHookTests : WeaverTestsBuildFromTestName { - [Test] - public void FindsPrivateHook() - { - IsSuccess(); - } - - [Test] - public void FindsPublicHook() - { - IsSuccess(); - } - - [Test] - public void FindsStaticHook() - { - IsSuccess(); - } - - [Test] - public void FindsHookWithGameObjects() - { - IsSuccess(); - } - - [Test] - public void FindsHookWithNetworkIdentity() - { - IsSuccess(); - } - - [Test] - public void FindsHookWithOtherOverloadsInOrder() - { - IsSuccess(); - } - - [Test] - public void FindsHookWithOtherOverloadsInReverseOrder() - { - IsSuccess(); - } - static string OldNewMethodFormat(string hookName, string ValueType) { return string.Format("void {0}({1} oldValue, {1} newValue)", hookName, ValueType); diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess.meta new file mode 100644 index 000000000..d4bd9a646 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: e70e01ab41584cecb0bb277ebcec26b6 +timeCreated: 1643083684 \ No newline at end of file diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests~/FindsHookWithGameObjects.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsHookWithGameObjects.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests~/FindsHookWithGameObjects.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsHookWithGameObjects.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsHookWithGameObjects.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsHookWithGameObjects.cs.meta new file mode 100644 index 000000000..48caf7359 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsHookWithGameObjects.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 91ba1f1636e994d35926247a1b5ddfeb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests~/FindsHookWithNetworkIdentity.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsHookWithNetworkIdentity.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests~/FindsHookWithNetworkIdentity.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsHookWithNetworkIdentity.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsHookWithNetworkIdentity.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsHookWithNetworkIdentity.cs.meta new file mode 100644 index 000000000..c05f649e4 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsHookWithNetworkIdentity.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fa0f9d77be7ab465d8eaecf94109e28c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests~/FindsHookWithOtherOverloadsInOrder.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsHookWithOtherOverloadsInOrder.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests~/FindsHookWithOtherOverloadsInOrder.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsHookWithOtherOverloadsInOrder.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsHookWithOtherOverloadsInOrder.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsHookWithOtherOverloadsInOrder.cs.meta new file mode 100644 index 000000000..5d2db7f05 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsHookWithOtherOverloadsInOrder.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4ca8d2a8003b643deb817d22a5c18be9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests~/FindsHookWithOtherOverloadsInReverseOrder.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsHookWithOtherOverloadsInReverseOrder.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests~/FindsHookWithOtherOverloadsInReverseOrder.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsHookWithOtherOverloadsInReverseOrder.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsHookWithOtherOverloadsInReverseOrder.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsHookWithOtherOverloadsInReverseOrder.cs.meta new file mode 100644 index 000000000..cfe2d8767 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsHookWithOtherOverloadsInReverseOrder.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4aa8df7feb1364a86a5088146558de8c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests~/FindsPrivateHook.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsPrivateHook.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests~/FindsPrivateHook.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsPrivateHook.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsPrivateHook.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsPrivateHook.cs.meta new file mode 100644 index 000000000..d752182c7 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsPrivateHook.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d4635f4b5c7734921bb185fb09daef52 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests~/FindsPublicHook.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsPublicHook.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests~/FindsPublicHook.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsPublicHook.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsPublicHook.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsPublicHook.cs.meta new file mode 100644 index 000000000..1cb18561e --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsPublicHook.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fd5da6f7c90d9446787ab8f1c0bbb499 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests~/FindsStaticHook.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsStaticHook.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests~/FindsStaticHook.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsStaticHook.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsStaticHook.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsStaticHook.cs.meta new file mode 100644 index 000000000..625aeecdd --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeHookTests_IsSuccess/FindsStaticHook.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5099d9a55253341919aeff0513a096de +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeTests.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeTests.cs index 753d44324..08fa8c03a 100644 --- a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeTests.cs +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeTests.cs @@ -4,18 +4,6 @@ namespace Mirror.Weaver.Tests { public class WeaverSyncVarAttributeTests : WeaverTestsBuildFromTestName { - [Test] - public void SyncVarsValid() - { - IsSuccess(); - } - - [Test] - public void SyncVarsDerivedNetworkBehaviour() - { - IsSuccess(); - } - [Test] public void SyncVarsStatic() { @@ -73,12 +61,6 @@ public void SyncVarsSyncList() "Mirror.SyncList`1 WeaverSyncVarTests.SyncVarsSyncList.SyncVarsSyncList::syncints"); } - [Test] - public void SyncVarsExactlyMax() - { - IsSuccess(); - } - [Test] public void SyncVarsMoreThanMax() { diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeTests_IsSuccess.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeTests_IsSuccess.meta new file mode 100644 index 000000000..f7a809d01 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeTests_IsSuccess.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 9aa873725d92477cbdf19f333bb5ca96 +timeCreated: 1643083781 \ No newline at end of file diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeTests~/SyncVarsDerivedNetworkBehaviour.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeTests_IsSuccess/SyncVarsDerivedNetworkBehaviour.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeTests~/SyncVarsDerivedNetworkBehaviour.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeTests_IsSuccess/SyncVarsDerivedNetworkBehaviour.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeTests_IsSuccess/SyncVarsDerivedNetworkBehaviour.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeTests_IsSuccess/SyncVarsDerivedNetworkBehaviour.cs.meta new file mode 100644 index 000000000..fffb7a402 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeTests_IsSuccess/SyncVarsDerivedNetworkBehaviour.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f453a8bb28a4a4deb9417d2a29c20aef +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeTests~/SyncVarsExactlyMax.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeTests_IsSuccess/SyncVarsExactlyMax.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeTests~/SyncVarsExactlyMax.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeTests_IsSuccess/SyncVarsExactlyMax.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeTests~/SyncVarsExactlyMax.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeTests_IsSuccess/SyncVarsExactlyMax.cs.meta similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeTests~/SyncVarsExactlyMax.cs.meta rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeTests_IsSuccess/SyncVarsExactlyMax.cs.meta diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeTests~/SyncVarsValid.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeTests_IsSuccess/SyncVarsValid.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeTests~/SyncVarsValid.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeTests_IsSuccess/SyncVarsValid.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeTests_IsSuccess/SyncVarsValid.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeTests_IsSuccess/SyncVarsValid.cs.meta new file mode 100644 index 000000000..08d50f232 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverSyncVarAttributeTests_IsSuccess/SyncVarsValid.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 05594340f435e4de28388efc46a33ae1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests.cs index 625d4ba34..b2f575bb7 100644 --- a/Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests.cs +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests.cs @@ -4,12 +4,6 @@ namespace Mirror.Weaver.Tests { public class WeaverTargetRpcTests : WeaverTestsBuildFromTestName { - [Test] - public void TargetRpcValid() - { - IsSuccess(); - } - [Test] public void ErrorWhenTargetRpcIsStatic() { @@ -17,18 +11,6 @@ public void ErrorWhenTargetRpcIsStatic() "System.Void WeaverTargetRpcTests.ErrorWhenTargetRpcIsStatic.ErrorWhenTargetRpcIsStatic::TargetCantBeStatic(Mirror.NetworkConnection)"); } - [Test] - public void TargetRpcCanSkipNetworkConnection() - { - IsSuccess(); - } - - [Test] - public void TargetRpcCanHaveOtherParametersWhileSkipingNetworkConnection() - { - IsSuccess(); - } - [Test] public void ErrorWhenNetworkConnectionIsNotTheFirstParameter() { @@ -36,18 +18,6 @@ public void ErrorWhenNetworkConnectionIsNotTheFirstParameter() "System.Void WeaverTargetRpcTests.ErrorWhenNetworkConnectionIsNotTheFirstParameter.ErrorWhenNetworkConnectionIsNotTheFirstParameter::TargetRpcMethod(System.Int32,Mirror.NetworkConnection)"); } - [Test] - public void VirtualTargetRpc() - { - IsSuccess(); - } - - [Test] - public void OverrideVirtualTargetRpc() - { - IsSuccess(); - } - [Test] public void AbstractTargetRpc() { diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests_IsSuccess.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests_IsSuccess.meta new file mode 100644 index 000000000..73c2747e1 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests_IsSuccess.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 61b1dec97fbc4c9cae92609b5bbd9322 +timeCreated: 1643083911 \ No newline at end of file diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests~/OverrideVirtualTargetRpc.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests_IsSuccess/OverrideVirtualTargetRpc.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests~/OverrideVirtualTargetRpc.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests_IsSuccess/OverrideVirtualTargetRpc.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests_IsSuccess/OverrideVirtualTargetRpc.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests_IsSuccess/OverrideVirtualTargetRpc.cs.meta new file mode 100644 index 000000000..ea7d34217 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests_IsSuccess/OverrideVirtualTargetRpc.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cd443394428a741c19d59c118cc8ab6c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests~/TargetRpcCanHaveOtherParametersWhileSkipingNetworkConnection.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests_IsSuccess/TargetRpcCanHaveOtherParametersWhileSkipingNetworkConnection.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests~/TargetRpcCanHaveOtherParametersWhileSkipingNetworkConnection.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests_IsSuccess/TargetRpcCanHaveOtherParametersWhileSkipingNetworkConnection.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests_IsSuccess/TargetRpcCanHaveOtherParametersWhileSkipingNetworkConnection.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests_IsSuccess/TargetRpcCanHaveOtherParametersWhileSkipingNetworkConnection.cs.meta new file mode 100644 index 000000000..5b045fce9 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests_IsSuccess/TargetRpcCanHaveOtherParametersWhileSkipingNetworkConnection.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 852a7a1887709494ba0b3719389da4d5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests~/TargetRpcCanSkipNetworkConnection.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests_IsSuccess/TargetRpcCanSkipNetworkConnection.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests~/TargetRpcCanSkipNetworkConnection.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests_IsSuccess/TargetRpcCanSkipNetworkConnection.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests_IsSuccess/TargetRpcCanSkipNetworkConnection.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests_IsSuccess/TargetRpcCanSkipNetworkConnection.cs.meta new file mode 100644 index 000000000..3428d838e --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests_IsSuccess/TargetRpcCanSkipNetworkConnection.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b5612ba5b8ef645568b6b79d5548518f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests~/TargetRpcValid.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests_IsSuccess/TargetRpcValid.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests~/TargetRpcValid.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests_IsSuccess/TargetRpcValid.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests_IsSuccess/TargetRpcValid.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests_IsSuccess/TargetRpcValid.cs.meta new file mode 100644 index 000000000..1c46edade --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests_IsSuccess/TargetRpcValid.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2ec5e487c9cb7465b80ebdc3cfed7b2d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests~/VirtualTargetRpc.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests_IsSuccess/VirtualTargetRpc.cs similarity index 100% rename from Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests~/VirtualTargetRpc.cs rename to Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests_IsSuccess/VirtualTargetRpc.cs diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests_IsSuccess/VirtualTargetRpc.cs.meta b/Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests_IsSuccess/VirtualTargetRpc.cs.meta new file mode 100644 index 000000000..72d39d085 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverTargetRpcTests_IsSuccess/VirtualTargetRpc.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7b717a43817274f04b5a0fcf90418c59 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverTestsBuildFromTestName.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverTestsBuildFromTestName.cs index 7dd48f609..8341f5c56 100644 --- a/Assets/Mirror/Tests/Editor/Weaver/WeaverTestsBuildFromTestName.cs +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverTestsBuildFromTestName.cs @@ -13,6 +13,9 @@ public virtual void TestSetup() BuildAndWeaveTestAssembly(className, TestContext.CurrentContext.Test.Name); } + // IMPORTANT: IsSuccess() tests can almost ALL be moved into regular + // C#/folders without running AssemblyBuilder on them. + // See README.md int his folder. protected void IsSuccess() { Assert.That(weaverErrors, Is.Empty);