コード例 #1
0
        public void LoadACO_FileWrongExtension_ExtensionNotSupportedException()
        {
            //arrange
            string filename = "../../TestACO.cs";

            //act
            FormatACO.Load(filename);
            //assert exception
        }
コード例 #2
0
        public void LoadACO_FileDoesNotExist_FileNotFoundException()
        {
            //arrange
            string filename = "not a filename.aco";

            //act
            FormatACO.Load(filename);
            //assert exception
        }
コード例 #3
0
        public void LoadACO_ColorSpace0()
        {
            //arrange
            string filename = "../../../testData/Bright-colors.aco";
            //act
            ColorPalette palette = FormatACO.Load(filename);

            //assert
            Assert.AreEqual(252, palette.Colors.Length);
        }