• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

dev


Commit MetaInfo

Révisionadf650ac8f8032e9fffdeccb4421a4bf04e486a0 (tree)
l'heure2013-02-08 04:59:36
AuteurKimura Youichi <kim.upsilon@bucy...>
CommiterKimura Youichi

Message de Log

TweetThumbnailのテストでNullReferenceExceptionが発生する問題の修正

Change Summary

Modification

--- a/OpenTween.Tests/TweetThumbnailTest.cs
+++ b/OpenTween.Tests/TweetThumbnailTest.cs
@@ -22,7 +22,9 @@
2222 using System;
2323 using System.Collections.Generic;
2424 using System.Linq;
25+using System.Runtime.InteropServices;
2526 using System.Text;
27+using NSubstitute;
2628 using NUnit.Framework;
2729 using System.Reflection;
2830 using System.Windows.Forms;
@@ -74,6 +76,10 @@ namespace OpenTween
7476 [TestFixtureSetUp]
7577 public void MyCommonSetup()
7678 {
79+ var mockAssembly = Substitute.For<_Assembly>();
80+ mockAssembly.GetName().Returns(new AssemblyName("OpenTween"));
81+ MyCommon.EntryAssembly = mockAssembly;
82+
7783 MyCommon.fileVersion = "1.0.0.0";
7884 }
7985