using UnityEngine;
using UnityEditor;
using NUnit.Framework;

public class NewEditorTest {

    [Test]
    public void EditorTest()
    {
        //Arrange
        var gameObject = new GameObject();
        PixelPerfectSprite p = gameObject.AddComponent<PixelPerfectSprite>();

        //Act
        //Assert.AreEqual(2.4f, p.GetNearestMultipleValue(2.6f, 1.2f));
        //Assert.AreEqual(3.6f, p.GetNearestMultipleValue(3.8f, 1.2f));
        //Assert.AreEqual(3.6f, p.GetNearestMultipleValue(3.5f, 1.2f));
        //Assert.AreEqual(2.4f, p.GetNearestMultipleValue(2.4f, 1.2f));

        //Assert.AreEqual(0.3125f, p.GetNearestMultipleValue(0.3121f, 0.0625f));
    }
}
