Пример #1
0
        public void Add()
        {
            var disk = VirtualDiskCommon.FindByMarkedCode("tiny", QueryLevel.None);

            Assert.AreEqual("tiny", disk.MarkedCode);
            Assert.AreEqual("微小的磁盘空间", disk.Description);
        }
Пример #2
0
        public void Update()
        {
            var id = this.Fixture.Get <VirtualDisk>().Id;

            Util.UpdateDisk(id, "tiny1", "编辑描述");

            var disk = VirtualDiskCommon.FindByMarkedCode("tiny1", QueryLevel.None);

            Assert.AreEqual("编辑描述", disk.Description);
            Assert.AreEqual("tiny1", disk.MarkedCode);
        }