Skip to content

Commit 75cc2d6

Browse files
authored
Merge pull request Azure#2705 from Azure/fixGB18030Test
Update GB18030 test to use the appropriate path
2 parents 4e0f72f + daf36ce commit 75cc2d6

File tree

1 file changed

+3
-3
lines changed
  • src/ServiceManagement/Services/Commands.Test/CloudService/Utilities

1 file changed

+3
-3
lines changed

src/ServiceManagement/Services/Commands.Test/CloudService/Utilities/GeneralTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
15+
using System;
1616
using System.IO;
1717
using Microsoft.WindowsAzure.Commands.ScenarioTest;
1818
using Xunit;
@@ -31,7 +31,7 @@ public class GeneralTests : SMTestBase
3131
public void SerializationTestWithGB18030()
3232
{
3333
// Setup
34-
string outputFileName = "outputFile.txt";
34+
string outputFileName = Path.Combine(AppDomain.CurrentDomain.BaseDirectory,"outputFile.txt");
3535
ServiceDefinition serviceDefinition = XmlUtilities.DeserializeXmlFile<ServiceDefinition>(
3636
Testing.GetTestResourcePath("GB18030ServiceDefinition.csdef"));
3737

@@ -45,4 +45,4 @@ public void SerializationTestWithGB18030()
4545
Assert.True(data[0] == 0xff && data[1] == 0xfe);
4646
}
4747
}
48-
}
48+
}

0 commit comments

Comments
 (0)