fixing test names (#2309)

* fixing test names

* renaming test files
This commit is contained in:
James Frowen 2020-10-03 01:45:40 +01:00 committed by GitHub
parent 90834d476b
commit 181bab6bd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 18 additions and 37 deletions

View File

@ -183,39 +183,25 @@
<Compile Include="WeaverNetworkBehaviourTests~\NetworkBehaviourValid.cs" /> <Compile Include="WeaverNetworkBehaviourTests~\NetworkBehaviourValid.cs" />
<Compile Include="WeaverSyncDictionaryTests~\SyncDictionary.cs" /> <Compile Include="WeaverSyncDictionaryTests~\SyncDictionary.cs" />
<Compile Include="WeaverSyncDictionaryTests~\SyncDictionaryErrorForGenericStructItem.cs" /> <Compile Include="WeaverSyncDictionaryTests~\SyncDictionaryErrorForGenericStructItem.cs" />
<Compile Include="WeaverSyncDictionaryTests~\SyncDictionaryErrorForGenericStructItemWithCustomDeserializeOnly.cs" />
<Compile Include="WeaverSyncDictionaryTests~\SyncDictionaryErrorForGenericStructItemWithCustomSerializeOnly.cs" />
<Compile Include="WeaverSyncDictionaryTests~\SyncDictionaryErrorForGenericStructKey.cs" /> <Compile Include="WeaverSyncDictionaryTests~\SyncDictionaryErrorForGenericStructKey.cs" />
<Compile Include="WeaverSyncDictionaryTests~\SyncDictionaryErrorForGenericStructKeyWithCustomDeserializeOnly.cs" /> <Compile Include="WeaverSyncDictionaryTests~\GenericSyncDictionaryCanBeUsed.cs" />
<Compile Include="WeaverSyncDictionaryTests~\SyncDictionaryErrorForGenericStructKeyWithCustomSerializeOnly.cs" />
<Compile Include="WeaverSyncDictionaryTests~\SyncDictionaryErrorWhenUsingGenericInNetworkBehaviour.cs" />
<Compile Include="WeaverSyncDictionaryTests~\SyncDictionaryGenericAbstractInheritance.cs" /> <Compile Include="WeaverSyncDictionaryTests~\SyncDictionaryGenericAbstractInheritance.cs" />
<Compile Include="WeaverSyncDictionaryTests~\SyncDictionaryGenericInheritance.cs" /> <Compile Include="WeaverSyncDictionaryTests~\SyncDictionaryGenericInheritance.cs" />
<Compile Include="WeaverSyncDictionaryTests~\SyncDictionaryGenericStructItemWithCustomMethods.cs" /> <Compile Include="WeaverSyncDictionaryTests~\SyncDictionaryGenericStructItemWithCustomMethods.cs" />
<Compile Include="WeaverSyncDictionaryTests~\SyncDictionaryGenericStructKeyWithCustomMethods.cs" /> <Compile Include="WeaverSyncDictionaryTests~\SyncDictionaryGenericStructKeyWithCustomMethods.cs" />
<Compile Include="WeaverSyncDictionaryTests~\SyncDictionaryInheritance.cs" /> <Compile Include="WeaverSyncDictionaryTests~\SyncDictionaryInheritance.cs" />
<Compile Include="WeaverSyncDictionaryTests~\SyncDictionaryStructItem.cs" /> <Compile Include="WeaverSyncDictionaryTests~\SyncDictionaryStructItem.cs" />
<Compile Include="WeaverSyncDictionaryTests~\SyncDictionaryStructItemWithCustomDeserializeOnly.cs" />
<Compile Include="WeaverSyncDictionaryTests~\SyncDictionaryStructItemWithCustomMethods.cs" />
<Compile Include="WeaverSyncDictionaryTests~\SyncDictionaryStructItemWithCustomSerializeOnly.cs" />
<Compile Include="WeaverSyncDictionaryTests~\SyncDictionaryStructKey.cs" /> <Compile Include="WeaverSyncDictionaryTests~\SyncDictionaryStructKey.cs" />
<Compile Include="WeaverSyncDictionaryTests~\SyncDictionaryStructKeyWithCustomDeserializeOnly.cs" />
<Compile Include="WeaverSyncDictionaryTests~\SyncDictionaryStructKeyWithCustomMethods.cs" />
<Compile Include="WeaverSyncDictionaryTests~\SyncDictionaryStructKeyWithCustomSerializeOnly.cs" />
<Compile Include="WeaverSyncEventTests~\MultipleSyncEvent.cs" />
<Compile Include="WeaverSyncListTests~\SyncList.cs" /> <Compile Include="WeaverSyncListTests~\SyncList.cs" />
<Compile Include="WeaverSyncListTests~\SyncListByteValid.cs" /> <Compile Include="WeaverSyncListTests~\SyncListByteValid.cs" />
<Compile Include="WeaverSyncListTests~\SyncListErrorForGenericStruct.cs" /> <Compile Include="WeaverSyncListTests~\SyncListErrorForGenericStruct.cs" />
<Compile Include="WeaverSyncListTests~\SyncListErrorForGenericStructWithCustomDeserializeOnly.cs" />
<Compile Include="WeaverSyncListTests~\SyncListErrorForGenericStructWithCustomSerializeOnly.cs" />
<Compile Include="WeaverSyncListTests~\SyncListErrorForInterface.cs" /> <Compile Include="WeaverSyncListTests~\SyncListErrorForInterface.cs" />
<Compile Include="WeaverSyncListTests~\SyncListErrorWhenUsingGenericListInNetworkBehaviour.cs" /> <Compile Include="WeaverSyncListTests~\GenericSyncListCanBeUsed.cs" />
<Compile Include="WeaverSyncListTests~\SyncListGenericAbstractInheritance.cs" /> <Compile Include="WeaverSyncListTests~\SyncListGenericAbstractInheritance.cs" />
<Compile Include="WeaverSyncListTests~\SyncListGenericInheritance.cs" /> <Compile Include="WeaverSyncListTests~\SyncListGenericInheritance.cs" />
<Compile Include="WeaverSyncListTests~\SyncListGenericInheritanceWithMultipleGeneric.cs" /> <Compile Include="WeaverSyncListTests~\SyncListGenericInheritanceWithMultipleGeneric.cs" />
<Compile Include="WeaverSyncListTests~\SyncListGenericStructWithCustomMethods.cs" /> <Compile Include="WeaverSyncListTests~\SyncListGenericStructWithCustomMethods.cs" />
<Compile Include="WeaverSyncListTests~\SyncListInheritance.cs" /> <Compile Include="WeaverSyncListTests~\SyncListInheritance.cs" />
<Compile Include="WeaverSyncListTests~\SyncListInheritanceWithOverrides.cs" />
<Compile Include="WeaverSyncListTests~\SyncListInterfaceWithCustomMethods.cs" /> <Compile Include="WeaverSyncListTests~\SyncListInterfaceWithCustomMethods.cs" />
<Compile Include="WeaverSyncListTests~\SyncListMissingParamlessCtor.cs" /> <Compile Include="WeaverSyncListTests~\SyncListMissingParamlessCtor.cs" />
<Compile Include="WeaverSyncListTests~\SyncListMissingParamlessCtorManuallyInitialized.cs" /> <Compile Include="WeaverSyncListTests~\SyncListMissingParamlessCtorManuallyInitialized.cs" />
@ -225,9 +211,6 @@
<Compile Include="WeaverSyncListTests~\SyncListNestedInStructWithInvalid.cs" /> <Compile Include="WeaverSyncListTests~\SyncListNestedInStructWithInvalid.cs" />
<Compile Include="WeaverSyncListTests~\SyncListNestedStruct.cs" /> <Compile Include="WeaverSyncListTests~\SyncListNestedStruct.cs" />
<Compile Include="WeaverSyncListTests~\SyncListStruct.cs" /> <Compile Include="WeaverSyncListTests~\SyncListStruct.cs" />
<Compile Include="WeaverSyncListTests~\SyncListStructWithCustomDeserializeOnly.cs" />
<Compile Include="WeaverSyncListTests~\SyncListStructWithCustomMethods.cs" />
<Compile Include="WeaverSyncListTests~\SyncListStructWithCustomSerializeOnly.cs" />
<Compile Include="WeaverSyncSetTests~\SyncSet.cs" /> <Compile Include="WeaverSyncSetTests~\SyncSet.cs" />
<Compile Include="WeaverSyncSetTests~\SyncSetByteValid.cs" /> <Compile Include="WeaverSyncSetTests~\SyncSetByteValid.cs" />
<Compile Include="WeaverSyncSetTests~\SyncSetGenericAbstractInheritance.cs" /> <Compile Include="WeaverSyncSetTests~\SyncSetGenericAbstractInheritance.cs" />
@ -254,8 +237,6 @@
<Compile Include="WeaverSyncVarTests~\SyncVarsStatic.cs" /> <Compile Include="WeaverSyncVarTests~\SyncVarsStatic.cs" />
<Compile Include="WeaverSyncVarTests~\SyncVarsSyncList.cs" /> <Compile Include="WeaverSyncVarTests~\SyncVarsSyncList.cs" />
<Compile Include="WeaverSyncVarTests~\SyncVarsValid.cs" /> <Compile Include="WeaverSyncVarTests~\SyncVarsValid.cs" />
<Compile Include="WeaverSyncEventTests~\ErrorWhenSyncEventUsesGenericParameter.cs" />
<Compile Include="WeaverSyncEventTests~\SyncEventValid.cs" />
<Compile Include="WeaverTargetRpcTests~\AbstractTargetRpc.cs" /> <Compile Include="WeaverTargetRpcTests~\AbstractTargetRpc.cs" />
<Compile Include="WeaverTargetRpcTests~\ErrorWhenTargetRpcIsStatic.cs" /> <Compile Include="WeaverTargetRpcTests~\ErrorWhenTargetRpcIsStatic.cs" />
<Compile Include="WeaverTargetRpcTests~\OverrideAbstractTargetRpc.cs" /> <Compile Include="WeaverTargetRpcTests~\OverrideAbstractTargetRpc.cs" />

View File

@ -72,7 +72,7 @@ public void SyncDictionaryGenericStructItemWithCustomMethods()
} }
[Test] [Test]
public void SyncDictionaryErrorWhenUsingGenericInNetworkBehaviour() public void GenericSyncDictionaryCanBeUsed()
{ {
IsSuccess(); IsSuccess();
} }

View File

@ -1,8 +1,8 @@
using Mirror; using Mirror;
namespace WeaverSyncDictionaryTests.SyncDictionaryErrorWhenUsingGenericInNetworkBehaviour namespace WeaverSyncDictionaryTests.GenericSyncDictionaryCanBeUsed
{ {
class SyncDictionaryErrorWhenUsingGenericInNetworkBehaviour : NetworkBehaviour class GenericSyncDictionaryCanBeUsed : NetworkBehaviour
{ {
readonly SomeSyncDictionary<int, string> someDictionary; readonly SomeSyncDictionary<int, string> someDictionary;

View File

@ -133,7 +133,7 @@ public void SyncListInterfaceWithCustomMethods()
} }
[Test] [Test]
public void SyncListErrorWhenUsingGenericListInNetworkBehaviour() public void GenericSyncListCanBeUsed()
{ {
IsSuccess(); IsSuccess();
} }

View File

@ -0,0 +1,12 @@
using Mirror;
namespace WeaverSyncListTests.GenericSyncListCanBeUsed
{
class GenericSyncListCanBeUsed : NetworkBehaviour
{
readonly SomeList<int> someList;
public class SomeList<T> : SyncList<T> { }
}
}

View File

@ -1,12 +0,0 @@
using Mirror;
namespace WeaverSyncListTests.SyncListErrorWhenUsingGenericListInNetworkBehaviour
{
class SyncListErrorWhenUsingGenericListInNetworkBehaviour : NetworkBehaviour
{
readonly SomeList<int> someList;
public class SomeList<T> : SyncList<T> { }
}
}