public void CustomResTest()
        {
            var customRes = new TestRes()
            {
                Name = "TestRes"
            };

            customRes.Load();

            Assert.AreEqual(ResState.Loaded, customRes.State);
        }
示例#2
0
    public void LoadRes()
    {
        TestRes testRes = new TestRes()
        {
            Name = "mRes"
        };

        testRes.Load();

        //Assert.IsNotNull(testRes.Asset);

        //判断两个状态是否相等
        Assert.AreEqual(ResState.Loaded, testRes.State);
    }