public void Write__Writing_A_Valid_RealType()
        {
            RealType realType = new RealType();
            realType.Value = 100;

            byte[] writtenData = realType.Write();
            byte[] expected = File.ReadAllBytes("Content/Tests/RealType/RealType-Data.bin");

            Assert.AreEqual(BitConverter.ToString(expected), BitConverter.ToString(writtenData));
        }
        public void Equals__Not_Equal()
        {
            RealType realType = new RealType();
            realType.Value = 1;

            RealType other = new RealType();
            other.Value = 100;

            Assert.IsFalse(realType.Equals(other));
        }
        public void Read__Reading_A_Valid_RealType()
        {
            byte[] data = File.ReadAllBytes("Content/Tests/RealType/RealType-Data.bin");

            RealType realType = new RealType();
            realType.Read(data);

            float epsilon = 0.0001f;
            Assert.AreEqual(100, realType.Value, epsilon);
        }
        public void Equals()
        {
            RealType realType = new RealType();
            realType.Value = 1;

            RealType other = new RealType();
            other.Value = 1;

            Assert.IsTrue(realType.Equals(other));
        }