Esempio n. 1
0
        internal static MediaTarget FromText(string from)
        {
            var mediaTarget = new MediaTarget();

            mediaTarget.Coordinate = MemoryCoordinate.FromText(from);
            return(mediaTarget);
        }
            public void ReadsSingleLineContents()
            {
                var testFile = new[] { "3x4:test" };

                var arr          = FileReader.ReadAddressableRegion(testFile, null);
                var defaultValue = arr.Default[MemoryCoordinate.FromText("M:0A")];

                Assert.AreEqual("test", defaultValue);
            }