public void FileSpecification_Parse_3() { FileSpecification specification = FileSpecification.Parse("*****@*****.**"); Assert.AreEqual(IrbisPath.MasterFile, specification.Path); Assert.AreEqual("IBIS", specification.Database); Assert.AreEqual("doclad99.doc", specification.FileName); Assert.IsNull(specification.Content); Assert.IsTrue(specification.BinaryFile); }
public void FileSpecification_Parse_4() { FileSpecification specification = FileSpecification.Parse("2.IBIS.brief.pft&Hello"); Assert.AreEqual(IrbisPath.MasterFile, specification.Path); Assert.AreEqual("IBIS", specification.Database); Assert.AreEqual("brief.pft", specification.FileName); Assert.AreEqual("Hello", specification.Content); Assert.IsFalse(specification.BinaryFile); }
public void FileSpecification_Parse_2() { FileSpecification specification = FileSpecification.Parse("0..iri.mnu"); Assert.AreEqual(IrbisPath.System, specification.Path); Assert.IsNull(specification.Database); Assert.AreEqual("iri.mnu", specification.FileName); Assert.IsNull(specification.Content); Assert.IsFalse(specification.BinaryFile); }
public void FileSpecification_Parse_5() { FileSpecification.Parse("Hello"); }