Skip to content

Commit

Permalink
fix: Use Guid.Empty in the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGadget1024 committed Jan 11, 2021
1 parent ef59878 commit e900d33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assets/Tests/Editor/NetworkIdentityCallbackTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public void SetAssetId_GivesErrorForEmptyGuid()
identity.AssetId = guid1;

// assign a guid
var guid2 = Guid.NewGuid();
var guid2 = Guid.Empty;
ArgumentException exception = Assert.Throws<ArgumentException>(() =>
{
identity.AssetId = guid2;
Expand All @@ -264,7 +264,7 @@ public void SetAssetId_DoesNotGiveErrorIfBothOldAndNewAreEmpty()
{
Debug.Assert(identity.AssetId == Guid.Empty, "assetId needs to be empty at the start of this test");
// assign a guid
var guid2 = Guid.NewGuid();
var guid2 = Guid.Empty;
// expect no errors
identity.AssetId = guid2;

Expand Down

0 comments on commit e900d33

Please sign in to comment.