$B5FCS$G$9(B 
<br />
<br />$B!t8D?M08$KAw$C$F$7$^$C$?$N$G:FAw(B
<br />
<br />$B!!%"%;%s%V%j$N;2>H2r7h$GLdBj$,H/@8$7$F$$$k$h$&$K8+$($^$9$M!#(B 
<br />$B!!(B 
<br />http://msdn.microsoft.com/ja-jp/library/e74a18c4(VS.80).aspx 
<br />fuslogvw.exe 
<br />
<br />$B$G$N%"%;%s%V%j%P%$%s%G%#%s%0$G<B:]$N;2>H4X78$H%(%i!<$N>\:Y$N3NG'$H(B 
<br />
<br />http://msdn.microsoft.com/ja-jp/library/yx7xezcf(VS.80).aspx 
<br />$B%i%s%?%$%`$,%"%;%s%V%j$r8!:w$9$kJ}K!(B 
<br />
<br />$B$H(B 
<br />
<br />http://msdn.microsoft.com/ja-jp/library/efs781xb(VS.80).aspx 
<br />&lt;codeBase&gt; $BMWAG(B 
<br />
<br />$B!!$r;2>H$7$F;2>H2r7h$K<:GT$7$?%"%;%s%V%j$r(B app.config $B$GL@<(E*$K(BcodeBase$B;XDj$7$F$_$F$/$@$5$$!#(B 
<br />$B!J$^$?$O%"%;%s%V%j$N$"$k>l=j$r(B pobing$BBP>]$K$7$F$/$@$5$$!K(B 
<br />
<br />$B4XO"%A%'%C%/%]%$%s%H(B 
<br />$B!&(BGAC$BA0Ds$H$J$C$F$$$k%"%;%s%V%j$,@5$7$/(BGAC$BEPO?$5$l$F$$$k$+(B 
<br />$B!&%3%s%Q%$%k;~$H<B9T;~$G%P!<%8%g%s$N0[$J$k%"%;%s%V%j$rMxMQ$7$F$$$J$$$+(B 
<br />
<br />$B!!$3$NJU$b3NG'$7$F$_$F$/$@$5$$!#(B 
<br />
<br />2009/09/26 8:10 $BAa@n5.I'(B &lt;hayakawatakahiko@gmail.com&gt;:
<br />&gt; $B$$$D$b$*@$OC$K$J$C$F$*$j$^$9!#Aa@n$H?=$7$^$9!#(B
<br />&gt; 
<br />&gt; 
<br />&gt; $B7oL>$N7o$G:$$C$F$*$j$^$7$F!"2?$i$+$N2sHrJ}K!$r!"(B
<br />&gt; 
<br />&gt; 
<br />&gt; $B$^$?$O!"%+%P%l%C%8<hF@$K3'MM$O$I$s$J%D!<%k(B($B%U%j!<!&>&MQ(B)$B$r;HMQ$5$l$F$$$k$+(B
<br />&gt; 
<br />&gt; 
<br />&gt; $B65$($F$$$?$@$1$l$P$H;W$$%a!<%k$7$^$7$?!#(B
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; [$B8=>](B]
<br />&gt; 
<br />&gt; 
<br />&gt; PartCover$B$+$i(BNunit$B$r5/F0$7$F%F%9%HFbMF$N%+%P%l%C%8$r<hF@$7$h$&$H$9$k$H!"(B
<br />&gt; 
<br />&gt; 
<br />&gt; Seasar$B$N=i4|2==hM}$K$F%(%i!<$,H/@8$7$F$7$^$&!#(B
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; [$BA0Ds(B]
<br />&gt; 
<br />&gt; 
<br />&gt; 1$B!!%3%s%=!<%k%"%W%j(B($B0J2<%"%W%j(B) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OK
<br />&gt; 
<br />&gt; 
<br />&gt; 2$B!!(BNunit$B"*%F%9%H(Bdll$B"*%"%W%j(B &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OK
<br />&gt; 
<br />&gt; 
<br />&gt; 3$B!!(BPartCover$B"*%"%W%j(B &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OK
<br />&gt; 
<br />&gt; 
<br />&gt; 4$B!!(BPartCover$B"*(BNunit$B"*%F%9%H(Bdll$B"*%"%W%j(B $BNc30H/@8(B
<br />&gt; 
<br />&gt; 
<br />&gt; $BJdB-!'(B4$B$N%F%9%H(Bdll$B$K$F(BSeasar$B$N=i4|2==hM}$r9T$o$J$$%F%9%H$N>l9g$O(B
<br />&gt; 
<br />&gt; 
<br />&gt; $B%(%i!<$OH/@8$7$J$$(B
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; [$BNc30(B]
<br />&gt; 
<br />&gt; 
<br />&gt; Nunit$B$N%3%s%=!<%k$K=PNO$5$l$?Nc30>pJs$O0J2<$NDL$j$G$9!#(B
<br />&gt; 
<br />&gt; 
<br />&gt; ($BC"$7%Q%9Fb$N(BOS$B%m%0%$%s%f!<%6L>$N$_JT=8!K(B
<br />&gt; 
<br />&gt; 
<br />&gt; JScriptUtil$B$K$F!"(BTemp$B%G%#%l%/%H%j$K(Bdll$B$rC5$7$K9T$C$F$7$^$$!"(B
<br />&gt; 
<br />&gt; 
<br />&gt; $B%(%i!<$,H/@8$7$F$$$^$9!#(B
<br />&gt; 
<br />&gt; 
<br />&gt; ($B$3$3$GC5$7$F$$$k(Bdll$B$O!"<B9TKh$KKh2sL>>N$,JQ$o$k(B
<br />&gt; 
<br />&gt; 
<br />&gt; $B"*(BJScript.net$B$K$h$j(Bdicon$B5-=RFbMF$rI>2A$9$k$?$a$K;HMQ$7$F$$$k$b$N$N$h$&$@(B)
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; Seasar.WindowsExample.Tests.TestClass1.testMethod:
<br />&gt; 
<br />&gt; 
<br />&gt; System.TypeInitializationException :
<br />&gt; 
<br />&gt; 
<br />&gt; &#39;Seasar.Framework.Util.JScriptUtil&#39; $B$N%?%$%W=i4|2=;R$,Nc30$r%9%m!<$7$^$7$?!#(B
<br />&gt; 
<br />&gt; 
<br />&gt;  &nbsp;----&gt; System.IO.FileNotFoundException : $B%U%!%$%k$^$?$O%"%;%s%V%j(B
<br />&gt; 
<br />&gt; 
<br />&gt; &#39;file:///C:\Documents and Settings\$B%f!<%6L>(B\Local Settings\Temp\c_1pjiaw.dll&#39;$B!"(B
<br />&gt; 
<br />&gt; 
<br />&gt; $B$^$?$O$=$N0MB84X78$N(B 1 $B$D$,FI$_9~$a$^$;$s$G$7$?!#;XDj$5$l$?%U%!%$%k$,8+$D$+$j$^$;$s!#(B
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; $B>l=j(B Seasar.Framework.Util.JScriptUtil.Evaluate(String exp, Object root)
<br />&gt; 
<br />&gt; 
<br />&gt; $B>l=j(B Seasar.Framework.Container.Impl.ArgDefImpl.get_Value()
<br />&gt; 
<br />&gt; 
<br />&gt; $B>l=j(B Seasar.Framework.Container.Assembler.AbstractPropertyAssembler.GetValue(IPropertyDef
<br />&gt; 
<br />&gt; 
<br />&gt; propertyDef, Object component)
<br />&gt; 
<br />&gt; 
<br />&gt; $B>l=j(B Seasar.Framework.Container.Assembler.AutoPropertyAssembler.Assemble(Object
<br />&gt; 
<br />&gt; 
<br />&gt; component)
<br />&gt; 
<br />&gt; 
<br />&gt; $B>l=j(B Seasar.Framework.Container.Deployer.SingletonComponentDeployer.Assemble()
<br />&gt; 
<br />&gt; 
<br />&gt; $B>l=j(B Seasar.Framework.Container.Deployer.SingletonComponentDeployer.Deploy(Type
<br />&gt; 
<br />&gt; 
<br />&gt; receiveType)
<br />&gt; 
<br />&gt; 
<br />&gt; $B>l=j(B Seasar.Framework.Container.Deployer.SingletonComponentDeployer.Init()
<br />&gt; 
<br />&gt; 
<br />&gt; $B>l=j(B Seasar.Framework.Container.Impl.ComponentDefImpl.Init()
<br />&gt; 
<br />&gt; 
<br />&gt; $B>l=j(B Seasar.Framework.Container.Impl.S2ContainerImpl.Init()
<br />&gt; 
<br />&gt; 
<br />&gt; $B>l=j(B Seasar.Framework.Container.Impl.S2ContainerImpl.Init()
<br />&gt; 
<br />&gt; 
<br />&gt; $B>l=j(B Seasar.Framework.Container.Factory.SingletonS2ContainerFactory.Init()
<br />&gt; 
<br />&gt; 
<br />&gt; $B>l=j(B Seasar.WindowsExample.Tests.TestClass1.Setup() $B>l=j(B C:\Documents and
<br />&gt; 
<br />&gt; 
<br />&gt; Settings\$B%f!<%6L>(B\My Documents\Visual Studio
<br />&gt; 
<br />&gt; 
<br />&gt; 2008\Projects\sample\S2WindowsExample.Tests\TestClass1.cs:$B9T(B 29
<br />&gt; 
<br />&gt; 
<br />&gt; --FileNotFoundException
<br />&gt; 
<br />&gt; 
<br />&gt; $B>l=j(B System.Reflection.Assembly._nLoad(AssemblyName fileName, String
<br />&gt; 
<br />&gt; 
<br />&gt; codeBase, Evidence assemblySecurity, Assembly locationHint,
<br />&gt; 
<br />&gt; 
<br />&gt; StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean
<br />&gt; 
<br />&gt; 
<br />&gt; forIntrospection)
<br />&gt; 
<br />&gt; 
<br />&gt; $B>l=j(B System.Reflection.Assembly.nLoad(AssemblyName fileName, String
<br />&gt; 
<br />&gt; 
<br />&gt; codeBase, Evidence assemblySecurity, Assembly locationHint,
<br />&gt; 
<br />&gt; 
<br />&gt; StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean
<br />&gt; 
<br />&gt; 
<br />&gt; forIntrospection)
<br />&gt; 
<br />&gt; 
<br />&gt; $B>l=j(B System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef,
<br />&gt; 
<br />&gt; 
<br />&gt; Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
<br />&gt; 
<br />&gt; 
<br />&gt; forIntrospection)
<br />&gt; 
<br />&gt; 
<br />&gt; $B>l=j(B System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence
<br />&gt; 
<br />&gt; 
<br />&gt; assemblySecurity)
<br />&gt; 
<br />&gt; 
<br />&gt; $B>l=j(B System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly()
<br />&gt; 
<br />&gt; 
<br />&gt; $B>l=j(B Seasar.Framework.Util.JScriptUtil..cctor()
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; [$B;HMQ(BFramework]
<br />&gt; 
<br />&gt; 
<br />&gt; S2Container.net &nbsp; 1.3.9 ($B:F8=J}K!$G$O$3$N%P!<%8%g%s$rMQ$$$^$7$?$,!"(B1.3$B!%(B14$B$G$bF1MM$G$7$?(B)
<br />&gt; 
<br />&gt; 
<br />&gt; S2Dao.net &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1.3.9
<br />&gt; 
<br />&gt; 
<br />&gt; Nunit &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2.5.1.9189
<br />&gt; 
<br />&gt; 
<br />&gt; PartCover &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2.3.0.35109
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; [$B:F8=J}K!(B]
<br />&gt; 
<br />&gt; 
<br />&gt; 1$B!!(Bhttp://s2container.net.seasar.org/download/windowsformsample-1.3.9.zip
<br />&gt; 
<br />&gt; 
<br />&gt; $B$N(BS2WindowsExample.Tests$B%W%m%8%'%/%H$K!";2>H@_Dj$G(BNunit.framework.dll$B$rDI2C(B
<br />&gt; 
<br />&gt; 
<br />&gt; 2$B!!>e5-%W%m%8%'%/%H$K2<5-%F%9%H%/%i%9$rDI2C(B
<br />&gt; 
<br />&gt; 
<br />&gt; 3 &nbsp;http://blog.goo.ne.jp/wildriver_1977/e/f6a608cb164b4355bd55423410b20ec7
<br />&gt; 
<br />&gt; 
<br />&gt;  &nbsp; $B$r;29M$K$7$F(BPartCover$B$+$i(BNunit$B$r<B9T$7!"%F%9%H%"%W%j$r<B9T(B
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 2$B$N%F%9%H%/%i%9(B
<br />&gt; 
<br />&gt; 
<br />&gt; using System;
<br />&gt; 
<br />&gt; 
<br />&gt; using System.Collections.Generic;
<br />&gt; 
<br />&gt; 
<br />&gt; using System.Text;
<br />&gt; 
<br />&gt; 
<br />&gt; using NUnit.Framework;
<br />&gt; 
<br />&gt; 
<br />&gt; using System.IO;
<br />&gt; 
<br />&gt; 
<br />&gt; using log4net.Util;
<br />&gt; 
<br />&gt; 
<br />&gt; using System.Reflection;
<br />&gt; 
<br />&gt; 
<br />&gt; using log4net;
<br />&gt; 
<br />&gt; 
<br />&gt; using log4net.Config;
<br />&gt; 
<br />&gt; 
<br />&gt; using Seasar.Framework.Container.Factory;
<br />&gt; 
<br />&gt; 
<br />&gt; namespace Seasar.WindowsExample.Tests
<br />&gt; 
<br />&gt; 
<br />&gt; {
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt;  &nbsp; &nbsp;[TestFixture]
<br />&gt; 
<br />&gt; 
<br />&gt;  &nbsp; &nbsp;public class TestClass1
<br />&gt; 
<br />&gt; 
<br />&gt;  &nbsp; &nbsp;{
<br />&gt; 
<br />&gt; 
<br />&gt;  &nbsp; &nbsp; &nbsp; &nbsp;[SetUp]
<br />&gt; 
<br />&gt; 
<br />&gt;  &nbsp; &nbsp; &nbsp; &nbsp;public void Setup()
<br />&gt; 
<br />&gt; 
<br />&gt;  &nbsp; &nbsp; &nbsp; &nbsp;{
<br />&gt; 
<br />&gt; 
<br />&gt;  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FileInfo info = new FileInfo(string.Format(&quot;{0}.dll.config&quot;,
<br />&gt; 
<br />&gt; 
<br />&gt;  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SystemInfo.AssemblyShortName(Assembly.GetExecutingAssembly())));
<br />&gt; 
<br />&gt; 
<br />&gt;  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;XmlConfigurator.Configure(LogManager.GetRepository(), info);
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt;  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SingletonS2ContainerFactory.ConfigPath = &quot;ExampleLogics.dicon&quot;;
<br />&gt; 
<br />&gt; 
<br />&gt;  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SingletonS2ContainerFactory.Init();
<br />&gt; 
<br />&gt; 
<br />&gt;  &nbsp; &nbsp; &nbsp; &nbsp;}
<br />&gt; 
<br />&gt; 
<br />&gt;  &nbsp; &nbsp; &nbsp; &nbsp;[Test]
<br />&gt; 
<br />&gt; 
<br />&gt;  &nbsp; &nbsp; &nbsp; &nbsp;public void testMethod()
<br />&gt; 
<br />&gt; 
<br />&gt;  &nbsp; &nbsp; &nbsp; &nbsp;{
<br />&gt; 
<br />&gt; 
<br />&gt;  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//Seasar$B$N=i4|2==hM}$G%(%i!<$,H/@8$7$J$+$C$?$+$I$&$+$r3NG'$9$k$?$a$@$1$N%F%9%H(B
<br />&gt; 
<br />&gt; 
<br />&gt;  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Assert.IsTrue(true);
<br />&gt; 
<br />&gt; 
<br />&gt;  &nbsp; &nbsp; &nbsp; &nbsp;}
<br />&gt; 
<br />&gt; 
<br />&gt;  &nbsp; &nbsp; &nbsp; &nbsp;[TearDown]
<br />&gt; 
<br />&gt; 
<br />&gt;  &nbsp; &nbsp; &nbsp; &nbsp;public void TearDown()
<br />&gt; 
<br />&gt; 
<br />&gt;  &nbsp; &nbsp; &nbsp; &nbsp;{
<br />&gt; 
<br />&gt; 
<br />&gt;  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SingletonS2ContainerFactory.Destroy();
<br />&gt; 
<br />&gt; 
<br />&gt;  &nbsp; &nbsp; &nbsp; &nbsp;}
<br />&gt; 
<br />&gt; 
<br />&gt;  &nbsp; &nbsp;}
<br />&gt; 
<br />&gt; 
<br />&gt; }
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; [$B5?LdE@(B]
<br />&gt; 
<br />&gt; 
<br />&gt; Seasar.Framework.Util.JScriptUtil$B$G$O(Bparameters.GenerateInMemory = true;
<br />&gt; 
<br />&gt; 
<br />&gt; $B$H$J$C$F$*$j!"@5>oF0:n$9$k%Q%?!<%s$N>l9g$K$O%a%b%j>e$K(Bdll$B$,:n@.$5$l$F$$$k$h$&$@$,(B
<br />&gt; 
<br />&gt; 
<br />&gt; PartCover$B"*(BNunit$B"*%F%9%H(Bdll$B$N>l9g$K$ONc305-:\$N%Q%9$rC5$7$K9T$C$F$7$^$&E@(B
<br />&gt; 
<br />&gt; 
<br />&gt; (exe &nbsp; &nbsp; $B"*(Bexe$B!!"*(Bdll$B$N>l9g!)$=$l$H$bB>$K2?$+>r7o$,$"$k!)(B)
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; [$B;n9TFbMF(B]
<br />&gt; 
<br />&gt; 
<br />&gt; $B!&(BPartCover/Nunit$B$O$=$l$>$l%3%s%=!<%k%"%W%j!"(BGUI$B%"%W%j$,$"$j!"(B
<br />&gt; 
<br />&gt; 
<br />&gt; $B$=$l$>$l$NAH$_9g$o$;(B(4$BDL$j(B)$B$r;n$7$F$bF1MM$N8=>](B
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; $B!&(Bnunit$B$N@_Dj$K$F(B
<br />&gt; 
<br />&gt; 
<br />&gt; /domain &nbsp; None,Single,Multiple 3$BDL$j(B
<br />&gt; 
<br />&gt; 
<br />&gt; /process$B!!(BSingle,Separate,Multiple$B!!(B3$BDL$j(B
<br />&gt; 
<br />&gt; 
<br />&gt; /noshadow 2$BDL$j(B
<br />&gt; 
<br />&gt; 
<br />&gt; /nothread 2$BDL$j(B
<br />&gt; 
<br />&gt; 
<br />&gt; $B$NAH$_9g$o$;$r;n$7$F$_$F$bLdBj$N2r7h$K$O7R$,$i$:(B
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; $B!&(BPartCover$BB&$K$O>e5-$N$h$&$JF0:n$K1F6A$N$"$k$h$&$J%*%W%7%g%s$OL5$$(B
<br />&gt; 
<br />&gt; 
<br />&gt; $B"*$3$A$i$G(B/noshadow$B$N$h$&$J%*%W%7%g%sF0:n$,I,MW$J$N$G$O!)$H(B
<br />&gt; 
<br />&gt; 
<br />&gt; $BA[A|$7$D$D$bITL@(B
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; $B0J>e$G$9(B
<br />&gt; 
<br />&gt; 
<br />&gt; $B$I$&$>$h$m$7$/$*4j$$$7$^$9(B
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; --
<br />&gt; 
<br />&gt; 
<br />&gt; $BAa@n5.I'(B
<br />&gt; 
<br />&gt; 
<br />&gt; _______________________________________________
<br />&gt; 
<br />&gt; 
<br />&gt; seasar-dotnet mailing list
<br />&gt; 
<br />&gt; 
<br />&gt; seasar-dotnet@ml.seasar.org
<br />&gt; 
<br />&gt; 
<br />&gt; https://ml.seasar.org/mailman/listinfo/seasar-dotnet
<br />&gt; 
<br />&gt; 
<br />&gt;