mirror of https://github.com/oliverbooth/X10D
test: suppress ReSharper.Unity.InefficientPropertyAccess
This is false positive being thrown by the analyzer. The values are - in fact - changing before being read each time.
This commit is contained in:
parent
420ec2433a
commit
dc6d984fa8
|
@ -2,6 +2,7 @@
|
|||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using NUnit.Framework;
|
||||
using UnityEngine;
|
||||
using UnityEngine.TestTools;
|
||||
|
@ -122,6 +123,7 @@ namespace X10D.Unity.Tests
|
|||
}
|
||||
|
||||
[UnityTest]
|
||||
[SuppressMessage("ReSharper", "Unity.InefficientPropertyAccess", Justification = "False positive.")]
|
||||
public IEnumerator LookAt_ShouldRotateSameAsTransform()
|
||||
{
|
||||
var first = new GameObject {transform = {position = Vector3.zero, rotation = Quaternion.identity}};
|
||||
|
@ -281,6 +283,7 @@ namespace X10D.Unity.Tests
|
|||
}
|
||||
|
||||
[UnityTest]
|
||||
[SuppressMessage("ReSharper", "Unity.InefficientPropertyAccess", Justification = "False positive.")]
|
||||
public IEnumerator SetParent_ShouldSetParent()
|
||||
{
|
||||
var first = new GameObject {transform = {position = Vector3.zero, rotation = Quaternion.identity}};
|
||||
|
|
Loading…
Reference in New Issue