A game about forced loneliness, made by TACStudios
at master 26 lines 760 B view raw
1using System; 2using NUnit.Framework; 3using UnityEngine.Rendering; 4 5namespace UnityEngine.Rendering.Tests 6{ 7 internal class CopyPasteTestComponent1 : VolumeComponent 8 { 9 public FloatParameter p1 = new FloatParameter(0f); 10 public IntParameter p2 = new IntParameter(0); 11 12 public CopyPasteTestComponent1 WithModifiedValues() 13 { 14 p1.value = 123.0f; 15 p2.value = 123; 16 return this; 17 } 18 19 public void AssertEquality(CopyPasteTestComponent1 other, Action<object, object> assertionFunction) 20 { 21 Assert.AreEqual(GetType(), other.GetType()); 22 assertionFunction(p1.value, other.p1.value); 23 assertionFunction(p2.value, other.p2.value); 24 } 25 } 26}