public void CreatioPkgProject_RefToCoreSrc_LoadFromFileRealProjCase() { var expectProj = XElement.Load("ExpectPkgProj.xml", LoadOptions.SetBaseUri); var proj = CreatioPkgProject.LoadFromFile("OriginPkgProj.xml"); proj.RefToCoreSrc() .Document.Should().BeEquivalentTo(expectProj); }
public void CreatioPkgProject_RefToUnitBin_LoadFromUnitCoreSrcFileSimpleCase() { var expectElement = XElement.Load("UnitBinReferenceHint.xml", LoadOptions.SetBaseUri); var proj = CreatioPkgProject.LoadFromFile("UnitCoreSrcReferenceHint.xml"); proj.RefToUnitBin() .Document .Should().BeEquivalentTo(expectElement); }
public void CreatioPkgProject_RefToBinInner_LoadFromCoreSrcInnerFileSimpleCase() { var expectElement = XElement.Load("InnerBinReferenceHint.xml", LoadOptions.SetBaseUri); var proj = CreatioPkgProject.LoadFromFile("InnerCoreSrcReferenceHint.xml"); proj.RefToCustomPath(@"..\..\..\..\Bin\") .Document .Should().BeEquivalentTo(expectElement); }
public void CreatioPkgProject_RefToBin_LoadFromTsCoreBinPathFileSimpleCase() { var expectElement = XElement.Load("BinNet472ReferenceHint.xml", LoadOptions.SetBaseUri); var proj = CreatioPkgProject.LoadFromFile("TsCoreBinPathNet472ReferenceHint.xml"); proj.RefToBin() .Document .Should().BeEquivalentTo(expectElement); }
public void CreatioPkgProject_RefToBin_LoadFromUnitCoreSrcSample() { var expectElement = XElement.Load("UnitBinSample.xml", LoadOptions.SetBaseUri); var proj = CreatioPkgProject.LoadFromFile("UnitCoreSrcSample.xml"); proj.RefToCustomPath(@"..\..\..\..\Bin\") .RefToUnitBin() .Document .Should().BeEquivalentTo(expectElement); }
public void CreatioPkgProject_DetermineCurrentRef_LoadFromTsCoreBinPath() { var proj = CreatioPkgProject.LoadFromFile("TsCoreBinPathNet472ReferenceHint.xml"); proj.CurrentRefType.Should().BeEquivalentTo(RefType.TsCoreBinPath); }
public void CreatioPkgProject_DetermineCurrentRef_LoadFromUnitBinFile() { var proj = CreatioPkgProject.LoadFromFile("UnitBinReferenceHint.xml"); proj.CurrentRefType.Should().BeEquivalentTo(RefType.UnitTest); }
public void CreatioPkgProject_DetermineCurrentRef_LoadFromCoreSrcFile() { var proj = CreatioPkgProject.LoadFromFile("CoreSrcReferenceHint.xml"); proj.CurrentRefType.Should().BeEquivalentTo(RefType.CoreSrc); }
public ICreatioPkgProject CreateFromFile(string path) { return(CreatioPkgProject.LoadFromFile(path)); }