Skip to content

Commit

Permalink
Merge pull request #12 from nowsprinting/chore/fix_format
Browse files Browse the repository at this point in the history
Fix format
  • Loading branch information
nowsprinting authored Oct 16, 2023
2 parents 9168127 + ded6f4e commit d3e274e
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions Tests/Runtime/Constraints/DestroyedConstraintTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using System;
using NUnit.Framework;
using UnityEngine;
using UnityEngine.Windows;
using Object = UnityEngine.Object;

namespace TestHelper.Constraints
Expand Down Expand Up @@ -38,9 +37,8 @@ public void IsDestroyed_NotDestroyedGameObject_Failure()
}
catch (AssertionException e)
{
Assert.That(e.Message,
Is.EqualTo(
$" Expected: destroyed GameObject{Environment.NewLine} But was: <Foo (UnityEngine.GameObject)>{Environment.NewLine}"));
Assert.That(e.Message, Is.EqualTo(
$" Expected: destroyed GameObject{Environment.NewLine} But was: <Foo (UnityEngine.GameObject)>{Environment.NewLine}"));
}
}

Expand All @@ -56,9 +54,8 @@ public void IsDestroyed_Null_Failure()
}
catch (AssertionException e)
{
Assert.That(e.Message,
Is.EqualTo(
$" Expected: destroyed GameObject{Environment.NewLine} But was: null{Environment.NewLine}"));
Assert.That(e.Message, Is.EqualTo(
$" Expected: destroyed GameObject{Environment.NewLine} But was: null{Environment.NewLine}"));
}
}

Expand All @@ -74,9 +71,8 @@ public void IsDestroyed_NotGameObject_Failure()
}
catch (AssertionException e)
{
Assert.That(e.Message,
Is.EqualTo(
$" Expected: destroyed GameObject{Environment.NewLine} But was: <string.Empty>{Environment.NewLine}"));
Assert.That(e.Message, Is.EqualTo(
$" Expected: destroyed GameObject{Environment.NewLine} But was: <string.Empty>{Environment.NewLine}"));
}
}

Expand All @@ -92,9 +88,8 @@ public void IsNotDestroyed_DestroyedGameObject_Failure()
}
catch (AssertionException e)
{
Assert.That(e.Message,
Is.EqualTo(
$" Expected: not destroyed GameObject{Environment.NewLine} But was: <null>{Environment.NewLine}"));
Assert.That(e.Message, Is.EqualTo(
$" Expected: not destroyed GameObject{Environment.NewLine} But was: <null>{Environment.NewLine}"));
}
}

Expand Down

0 comments on commit d3e274e

Please sign in to comment.