Tests: Weaver IsSuccess() tests moved to regular C# space instead of AssemblyBuilder (#3069)

* README

* WeaverClientRpcTests

* CommandTests

* WeaverGeneralTests

* WeaverGeneratedReaderWriterAnotherAssemblyTests

* Tests asmdef references ExtraAssembly

* WeaverGeneratedReaderWriterTests

* WeaverMessageTests

* WeaverMonoBehaviourTests

* WeaverNetworkBehaviourTests

* WeaverSyncDictionaryTests

* pragma

* meta

* WeaverSyncListTests

* WeaverSyncObjectsTests

* WeaverSyncSetTests

* WeaverSyncVarAttributeHookTests

* WeaverSyncVarAttributeTests

* comment

* WeaverTargetRpcTests
This commit is contained in:
vis2k 2022-01-25 12:29:37 +08:00 committed by GitHub
parent cb0d722366
commit 88f09be888
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
226 changed files with 1088 additions and 610 deletions

View File

@ -9,7 +9,8 @@
"Telepathy", "Telepathy",
"UnityEngine.TestRunner", "UnityEngine.TestRunner",
"UnityEditor.TestRunner", "UnityEditor.TestRunner",
"Unity.Mirror.CodeGen" "Unity.Mirror.CodeGen",
"WeaverTestExtraAssembly"
], ],
"includePlatforms": [ "includePlatforms": [
"Editor" "Editor"

View File

@ -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.

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: fe0ea9aa683941dc832caafa91f6a72d
timeCreated: 1643081104

View File

@ -4,12 +4,6 @@ namespace Mirror.Weaver.Tests
{ {
public class WeaverClientRpcTests : WeaverTestsBuildFromTestName public class WeaverClientRpcTests : WeaverTestsBuildFromTestName
{ {
[Test]
public void ClientRpcValid()
{
IsSuccess();
}
[Test] [Test]
public void ClientRpcCantBeStatic() public void ClientRpcCantBeStatic()
{ {
@ -17,18 +11,6 @@ public void ClientRpcCantBeStatic()
"System.Void WeaverClientRpcTests.ClientRpcCantBeStatic.ClientRpcCantBeStatic::RpcCantBeStatic()"); "System.Void WeaverClientRpcTests.ClientRpcCantBeStatic.ClientRpcCantBeStatic::RpcCantBeStatic()");
} }
[Test]
public void VirtualClientRpc()
{
IsSuccess();
}
[Test]
public void OverrideVirtualClientRpc()
{
IsSuccess();
}
[Test] [Test]
public void AbstractClientRpc() public void AbstractClientRpc()
{ {
@ -42,17 +24,5 @@ public void OverrideAbstractClientRpc()
HasError("Abstract ClientRpc are currently not supported, use virtual method instead", HasError("Abstract ClientRpc are currently not supported, use virtual method instead",
"System.Void WeaverClientRpcTests.OverrideAbstractClientRpc.BaseBehaviour::RpcDoSomething()"); "System.Void WeaverClientRpcTests.OverrideAbstractClientRpc.BaseBehaviour::RpcDoSomething()");
} }
[Test]
public void ClientRpcThatExcludesOwner()
{
IsSuccess();
}
[Test]
public void BehaviourCanBeSentInRpc()
{
IsSuccess();
}
} }
} }

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 4f961f3f925c41f295d7ef17978001fe
timeCreated: 1643081346

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 6aeadedebed6110459fac293b9435e88 guid: c93dd180605f644c2b24cde840095dd7
MonoImporter: MonoImporter:
externalObjects: {} externalObjects: {}
serializedVersion: 2 serializedVersion: 2

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: b531777359eb2fd4e97d78dea5d486ba guid: 1d1e7f164257c4ce49acc45f27c9e16e
MonoImporter: MonoImporter:
externalObjects: {} externalObjects: {}
serializedVersion: 2 serializedVersion: 2

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: a2fc12fbf5fb9274dbeed361445f6cf3 guid: 1b6e0531a6ce04c1e98316b51b1b4fda
MonoImporter: MonoImporter:
externalObjects: {} externalObjects: {}
serializedVersion: 2 serializedVersion: 2

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 6b960c909aead4954a70aebf0427f2d2
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 2bed05ae46099420281703e1956ec658
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -4,12 +4,6 @@ namespace Mirror.Weaver.Tests
{ {
public class WeaverCommandTests : WeaverTestsBuildFromTestName public class WeaverCommandTests : WeaverTestsBuildFromTestName
{ {
[Test]
public void CommandValid()
{
IsSuccess();
}
[Test] [Test]
public void CommandCantBeStatic() public void CommandCantBeStatic()
{ {
@ -17,30 +11,6 @@ public void CommandCantBeStatic()
"System.Void WeaverCommandTests.CommandCantBeStatic.CommandCantBeStatic::CmdCantBeStatic()"); "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] [Test]
public void ErrorForOptionalNetworkConnectionThatIsNotSenderConnection() public void ErrorForOptionalNetworkConnectionThatIsNotSenderConnection()
{ {
@ -55,36 +25,6 @@ public void ErrorForNetworkConnectionThatIsNotSenderConnection()
"System.Void WeaverCommandTests.ErrorForNetworkConnectionThatIsNotSenderConnection.ErrorForNetworkConnectionThatIsNotSenderConnection::CmdFunction(Mirror.NetworkConnection)"); "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] [Test]
public void AbstractCommand() public void AbstractCommand()
{ {

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: fac079ccee24451589944f06cfb495ab
timeCreated: 1643081493

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: e4265cfab73ff4eef80a01723f6fb5fa
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 10537f40690ce495486d55802e093ada
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 3d5568e41a2584f84a1bff2d39dd38a1
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 1d47ddf01d3e142c1bfa1dd16d96bc27
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: a5b439a62107449039062d996d83d063
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 2a333e7e4ee5544dc8ceb57c1615c2e6
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 99460dd9fbe0e4ff2902469dc389ae96
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: e0058cedd9d5b41cda88b402d7c303be
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: c4f0277f89a9642f794a6bd3300ab09d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 4d6761de4ffa14f0797f83e428c9f321
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -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();
}
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 70d3b9bd4b7242e3a3c4170a476e7f51
timeCreated: 1643081656

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: df60a572fc56841c284952761332bcec
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 2926d9420f39349e893ddec0a517529b
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -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();
}
}
}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 7588efe7b5b844dab82a9f3fb4360e7a
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: b99201f4b462349fbbbaa30d63b7383c
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: e098c02c1a4d543fea35eacb265bf185
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 66afc9de1e55649088cc2e0ddc87e2bd
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 0cca8bd4f61264c69b5cebb0d06e6ccd
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 4fe20050b18ad437eaea18c81e4b7be5
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: d2ac5c5eaeb6241ccb87cd4d7b104f5b
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -4,30 +4,6 @@ namespace Mirror.Weaver.Tests
{ {
public class WeaverGeneratedReaderWriterTests : WeaverTestsBuildFromTestName 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] [Test]
public void GivesErrorForClassWithNoValidConstructor() public void GivesErrorForClassWithNoValidConstructor()
{ {
@ -35,12 +11,6 @@ public void GivesErrorForClassWithNoValidConstructor()
"GeneratedReaderWriter.GivesErrorForClassWithNoValidConstructor.SomeOtherData"); "GeneratedReaderWriter.GivesErrorForClassWithNoValidConstructor.SomeOtherData");
} }
[Test]
public void CreatesForInheritedFromScriptableObject()
{
IsSuccess();
}
[Test] [Test]
public void GivesErrorWhenUsingUnityAsset() public void GivesErrorWhenUsingUnityAsset()
{ {
@ -92,13 +62,6 @@ public void GivesErrorWhenUsingTypeInheritedFromMonoBehaviour()
// "GeneratedReaderWriter.GivesErrorWhenUsingTypeInheritedFromMonoBehaviour.MyBehaviour"); // "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] [Test]
public void GivesErrorWhenUsingInterface() public void GivesErrorWhenUsingInterface()
{ {
@ -109,12 +72,6 @@ public void GivesErrorWhenUsingInterface()
// "GeneratedReaderWriter.GivesErrorWhenUsingInterface.IData"); // "GeneratedReaderWriter.GivesErrorWhenUsingInterface.IData");
} }
[Test]
public void CanUseCustomReadWriteForInterfaces()
{
IsSuccess();
}
[Test] [Test]
public void GivesErrorWhenUsingAbstractClass() public void GivesErrorWhenUsingAbstractClass()
{ {
@ -125,36 +82,6 @@ public void GivesErrorWhenUsingAbstractClass()
// "GeneratedReaderWriter.GivesErrorWhenUsingAbstractClass.DataBase"); // "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] [Test]
public void GivesErrorForMultidimensionalArray() public void GivesErrorForMultidimensionalArray()
{ {
@ -182,18 +109,6 @@ public void GivesErrorForInvalidArraySegmentType()
// "System.ArraySegment`1<UnityEngine.MonoBehaviour>"); // "System.ArraySegment`1<UnityEngine.MonoBehaviour>");
} }
[Test]
public void CreatesForList()
{
IsSuccess();
}
[Test]
public void CreatesForStructList()
{
IsSuccess();
}
[Test] [Test]
public void GivesErrorForInvalidListType() public void GivesErrorForInvalidListType()
{ {

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 481ded00d806459b98c56f88b4c63cac
timeCreated: 1643082170

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: ec3aff614cf064fcfb647c5bf2427ab9
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: d362bab10072f4254b5b5ec2dec6a219
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: b8e170776a26948e5a371acd9d108e23
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: c40f8d67a65164c4cbee03c0e0e25238
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 7403ae2e88bb94bb68fb52724eb80b9e
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: c8bdbd0be145445769dd26795ebb1e14
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 9e9b99d242e2d4ec791120b90992f9f9
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: eaa774dd59f314483be65bb1fecaf240
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 01e98a567df124dbdae4da004b786676
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 4115a88d5bbc6468193943b69c777be5
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 5794897895bef48588d561811d35fe3a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 53df702fb349b4529bdc8d0ae2795cbc
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: a30a5f4499dde487baad74ec2eb09279
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: bfb5cd2f56ad544369df0ec231dd91e8
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -4,24 +4,6 @@ namespace Mirror.Weaver.Tests
{ {
public class WeaverMessageTests : WeaverTestsBuildFromTestName public class WeaverMessageTests : WeaverTestsBuildFromTestName
{ {
[Test]
public void MessageValid()
{
IsSuccess();
}
[Test]
public void MessageWithBaseClass()
{
IsSuccess();
}
[Test]
public void MessageSelfReferencing()
{
IsSuccess();
}
[Test] [Test]
public void MessageMemberGeneric() 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", HasError("Cannot generate writer for interface SuperCoolInterface. Use a supported type or provide a custom writer",
"WeaverMessageTests.MessageMemberInterface.SuperCoolInterface"); "WeaverMessageTests.MessageMemberInterface.SuperCoolInterface");
} }
[Test]
public void MessageNestedInheritance()
{
IsSuccess();
}
[Test]
public void AbstractMessageMethods()
{
IsSuccess();
}
} }
} }

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 189a9592d5ca4459aadeb4933ad579b4
timeCreated: 1643082574

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: e2526f960017544a9ac51109e40e5ca2
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 57ca45dd13a334f3e82bec8161e2a309
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 80d871bb7d76d4ba4bb61c4463a18611
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 8f9e80c0fd45740d1923469de369a8d3
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 7ad4ec02f843347b7bbbc9b85d455124
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -4,12 +4,6 @@ namespace Mirror.Weaver.Tests
{ {
public class WeaverMonoBehaviourTests : WeaverTestsBuildFromTestName public class WeaverMonoBehaviourTests : WeaverTestsBuildFromTestName
{ {
[Test]
public void MonoBehaviourValid()
{
IsSuccess();
}
[Test] [Test]
public void MonoBehaviourSyncVar() public void MonoBehaviourSyncVar()
{ {
@ -44,29 +38,5 @@ public void MonoBehaviourTargetRpc()
HasError("TargetRpc TargetThisCantBeOutsideNetworkBehaviour must be declared inside a NetworkBehaviour", HasError("TargetRpc TargetThisCantBeOutsideNetworkBehaviour must be declared inside a NetworkBehaviour",
"System.Void WeaverMonoBehaviourTests.MonoBehaviourTargetRpc.MonoBehaviourTargetRpc::TargetThisCantBeOutsideNetworkBehaviour(Mirror.NetworkConnection)"); "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();
}
} }
} }

Some files were not shown because too many files have changed in this diff Show More