Example #1
0
        public bool Validate(byte[] buffer)
        {
            bool isPCX = PCX.Instance.Validate(buffer);
            bool isMAP = MAP.ValidateFormat(buffer);
            bool isFPG = FPG.ValidateFormat(buffer);

            return(!(isPCX || isMAP || isFPG));
        }
Example #2
0
        public void Validate()
        {
            string filename = this.GetAssetPath(SharedConstants.FILENAME_FPG_TEST);

            Assert.IsTrue(FPG.ValidateFormat(filename));
        }
Example #3
0
        public void FailValidate()
        {
            string filename = this.GetAssetPath(SharedConstants.FILENAME_IMG_PLAYER_BMP);

            Assert.IsFalse(FPG.ValidateFormat(filename));
        }
Example #4
0
 public bool Validate(byte[] buffer)
 {
     return(FPG.ValidateFormat(buffer));
 }