Exemplo n.º 1
0
        public string GetSettingFileName()
        {
            var fwo = new FileWithOptions(this.FileName);

            fwo.ReadOnly      = this.IsReadOnly;
            fwo.NoDriveLetter = this.HasNoDriveLetter;
            return(fwo.ToString());
        }
Exemplo n.º 2
0
 public void Test_FileWithOptions_Write_01()
 {
     var x = new FileWithOptions("Test.vhd");
     x.ReadOnly = true;
     Assert.AreEqual("Test.vhd", x.FileName);
     Assert.AreEqual(true, x.ReadOnly);
     Assert.AreEqual(false, x.NoDriveLetter);
     Assert.AreEqual("/readonly/Test.vhd", x.ToString());
 }
Exemplo n.º 3
0
        public void Test_FileWithOptions_Write_01()
        {
            var x = new FileWithOptions("Test.vhd");

            x.ReadOnly = true;
            Assert.AreEqual("Test.vhd", x.FileName);
            Assert.AreEqual(true, x.ReadOnly);
            Assert.AreEqual(false, x.NoDriveLetter);
            Assert.AreEqual("/readonly/Test.vhd", x.ToString());
        }
Exemplo n.º 4
0
 public string GetSettingFileName()
 {
     var fwo = new FileWithOptions(this.FileName);
     fwo.ReadOnly = this.IsReadOnly;
     fwo.NoDriveLetter = this.HasNoDriveLetter;
     return fwo.ToString();
 }