From 2ca20db28e667c48264dfd6eab7584c8b744f325 Mon Sep 17 00:00:00 2001 From: Kimura Youichi Date: Sat, 11 May 2013 05:39:48 +0900 Subject: [PATCH] =?utf8?q?Windows=E4=BB=A5=E5=A4=96=E3=81=AE=E7=92=B0?= =?utf8?q?=E5=A2=83=E3=81=A7=20MyCommonTest.GetErrorLogPathTest=20?= =?utf8?q?=E3=81=8C=E6=AD=A3=E5=B8=B8=E3=81=AB=E5=8B=95=E4=BD=9C=E3=81=97?= =?utf8?q?=E3=81=AA=E3=81=84=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- OpenTween.Tests/MyCommonTest.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/OpenTween.Tests/MyCommonTest.cs b/OpenTween.Tests/MyCommonTest.cs index 6dc66e1b..f120514f 100644 --- a/OpenTween.Tests/MyCommonTest.cs +++ b/OpenTween.Tests/MyCommonTest.cs @@ -210,7 +210,8 @@ namespace OpenTween } [Test] - public void GetErrorLogPathTest() + [Platform("Win")] + public void GetErrorLogPathTestWindows() { var mockAssembly = Substitute.For<_Assembly>(); mockAssembly.Location.Returns(@"C:\hogehoge\OpenTween\OpenTween.exe"); @@ -218,5 +219,16 @@ namespace OpenTween Assert.That(MyCommon.GetErrorLogPath(), Is.SamePath(@"C:\hogehoge\OpenTween\ErrorLogs\")); } + + [Test] + [Platform(Exclude = "Win")] + public void GetErrorLogPathTestOther() + { + var mockAssembly = Substitute.For<_Assembly>(); + mockAssembly.Location.Returns(@"/hogehoge/OpenTween/OpenTween.exe"); + MyCommon.EntryAssembly = mockAssembly; + + Assert.That(MyCommon.GetErrorLogPath(), Is.SamePath(@"/hogehoge/OpenTween/ErrorLogs/")); + } } } -- 2.11.0