Author: mmccurrey
Date: Mon Mar  8 04:13:21 2010
New Revision: 920193

URL: http://svn.apache.org/viewvc?rev=920193&view=rev
Log:
Fixed all of the Caching tests.

Modified:
    
ibatis/cs/ibatisnet-3/trunk/src/Apache.Ibatis.Common.Test/Fixtures/Logging/LogTest.cs

Modified: 
ibatis/cs/ibatisnet-3/trunk/src/Apache.Ibatis.Common.Test/Fixtures/Logging/LogTest.cs
URL: 
http://svn.apache.org/viewvc/ibatis/cs/ibatisnet-3/trunk/src/Apache.Ibatis.Common.Test/Fixtures/Logging/LogTest.cs?rev=920193&r1=920192&r2=920193&view=diff
==============================================================================
--- 
ibatis/cs/ibatisnet-3/trunk/src/Apache.Ibatis.Common.Test/Fixtures/Logging/LogTest.cs
 (original)
+++ 
ibatis/cs/ibatisnet-3/trunk/src/Apache.Ibatis.Common.Test/Fixtures/Logging/LogTest.cs
 Mon Mar  8 04:13:21 2010
@@ -38,63 +38,63 @@
                [Test]
                public void LogDebug()
                {
-                       string expectedLogOutput = "[DEBUG] 
Apache.Ibatis.Common.Test.NUnit.CommonTests.Logging.LogTest - LogDebug";
+            string expectedLogOutput = "[DEBUG] 
Apache.Ibatis.Common.Test.Fixtures.Logging.LogTest - LogDebug";
                        string actualLogOutput = "";
 
                        _log.Debug("LogDebug");
 
                        actualLogOutput = 
outWriter.GetStringBuilder().ToString();
-                       
Assert.IsTrue(actualLogOutput.IndexOf(expectedLogOutput)>0);
+                       
Assert.IsTrue(actualLogOutput.IndexOf(expectedLogOutput)>0,"Expected {0}, Got 
{1}",expectedLogOutput,actualLogOutput);
                }
 
                [Test]
                public void LogInfo()
                {
-                       string expectedLogOutput = "[INFO]  
Apache.Ibatis.Common.Test.NUnit.CommonTests.Logging.LogTest - LogInfo";
+            string expectedLogOutput = "[INFO]  
Apache.Ibatis.Common.Test.Fixtures.Logging.LogTest - LogInfo";
                        string actualLogOutput = "";
 
                        _log.Info("LogInfo");
 
                        actualLogOutput = 
outWriter.GetStringBuilder().ToString();
-                       
Assert.IsTrue(actualLogOutput.IndexOf(expectedLogOutput)>0);
+                       
Assert.IsTrue(actualLogOutput.IndexOf(expectedLogOutput)>0,"Expected {0}, Got 
{1}",expectedLogOutput,actualLogOutput);
                }
 
                [Test]
                public void LogError()
                {
-                       string expectedLogOutput = "[ERROR] 
Apache.Ibatis.Common.Test.NUnit.CommonTests.Logging.LogTest - LogError";
+            string expectedLogOutput = "[ERROR] 
Apache.Ibatis.Common.Test.Fixtures.Logging.LogTest - LogError";
                        string actualLogOutput = "";
 
                        _log.Error("LogError");
 
                        actualLogOutput = 
outWriter.GetStringBuilder().ToString();
-                       
Assert.IsTrue(actualLogOutput.IndexOf(expectedLogOutput)>0);
+            Assert.IsTrue(actualLogOutput.IndexOf(expectedLogOutput) > 0, 
"Expected {0}, Got {1}", expectedLogOutput, actualLogOutput);
                }
 
                [Test]
                public void LogFatal()
                {
-                       string expectedLogOutput = "[FATAL] 
Apache.Ibatis.Common.Test.NUnit.CommonTests.Logging.LogTest - LogFatal";
+            string expectedLogOutput = "[FATAL] 
Apache.Ibatis.Common.Test.Fixtures.Logging.LogTest - LogFatal";
                        string actualLogOutput = "";
 
                        _log.Fatal("LogFatal");
 
                        actualLogOutput = 
outWriter.GetStringBuilder().ToString();
-                       
Assert.IsTrue(actualLogOutput.IndexOf(expectedLogOutput)>0);
+            Assert.IsTrue(actualLogOutput.IndexOf(expectedLogOutput) > 0, 
"Expected {0}, Got {1}", expectedLogOutput, actualLogOutput);
                }
 
 
                [Test]
                public void LogWarn()
                {
-                       string expectedLogOutput = "[WARN]  
Apache.Ibatis.Common.Test.NUnit.CommonTests.Logging.LogTest - LogWarn";
+            string expectedLogOutput = "[WARN]  
Apache.Ibatis.Common.Test.Fixtures.Logging.LogTest - LogWarn";
                        string actualLogOutput = "";
 
                        _log.Warn("LogWarn");
 
                        actualLogOutput = 
outWriter.GetStringBuilder().ToString();
                        int i = actualLogOutput.IndexOf(expectedLogOutput);
-                       
Assert.IsTrue(actualLogOutput.IndexOf(expectedLogOutput)>0);
+            Assert.IsTrue(actualLogOutput.IndexOf(expectedLogOutput) > 0, 
"Expected {0}, Got {1}", expectedLogOutput, actualLogOutput);
                }
 
        }


Reply via email to