Permalink
Browse files

RavenDB-414 Cannot build 1.2 after check-out

  • Loading branch information...
1 parent 1dbed48 commit 70fb801c9bb7b0b92bb12a1214411fe09fe00958 @ayende ayende committed Jul 29, 2012
@@ -88,6 +88,7 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\SharedLibs\Silverlight\Toolkit v5.0\Testing\Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll</HintPath>
</Reference>
+ <Reference Include="Raven.Tests.Silverlight.UnitTestProvider, Version=1.2.0.0, Culture=neutral, PublicKeyToken=321535b674325ef3, processorArchitecture=MSIL" />
<Reference Include="System.ComponentModel.Composition, Version=5.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\Program Files (x86)\Microsoft SDKs\Silverlight\v5.0\Libraries\Client\System.ComponentModel.Composition.dll</HintPath>
@@ -148,10 +149,6 @@
<Project>{8A1DB308-D56B-49BC-A421-A2AB32617215}</Project>
<Name>Raven.Client.Silverlight</Name>
</ProjectReference>
- <ProjectReference Include="..\Raven.Tests.Silverlight.UnitTestProvider\Raven.Tests.Silverlight.UnitTestProvider.csproj">
- <Project>{54415ADE-AFD4-40FB-9A5A-A3B7D8408E18}</Project>
- <Name>Raven.Tests.Silverlight.UnitTestProvider</Name>
- </ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="Properties\OutOfBrowserSettings.xml" />
@@ -1,47 +1,47 @@
-using System;
-using System.Collections.Generic;
-using System.Reflection;
-using System.Threading.Tasks;
-using Microsoft.Silverlight.Testing;
-
-namespace Raven.Tests.Silverlight.UnitTestProvider
-{
- public abstract class AsynchronousTaskTest : SilverlightTest
- {
- protected Task Delay(int milliseconds)
- {
- return TaskEx.Delay(TimeSpan.FromMilliseconds(milliseconds));
- }
-
- internal void ExecuteTest(MethodInfo test)
- {
- var tasks = (IEnumerable<Task>)test.Invoke(this, new object[] { });
- IEnumerator<Task> enumerator = tasks.GetEnumerator();
- ExecuteTestStep(enumerator);
- }
-
- internal void ExecuteTaskTest(MethodInfo test)
- {
- var task = (Task)test.Invoke(this, new object[] { });
- EnqueueConditional(() => task.IsCompleted || task.IsFaulted);
- EnqueueCallback(() =>
- {
- if (task.IsFaulted) throw task.Exception.InnerException;
- });
- EnqueueTestComplete();
- }
-
- private void ExecuteTestStep(IEnumerator<Task> enumerator)
- {
- bool moveNextSucceeded = enumerator.MoveNext();
-
- if (moveNextSucceeded)
- {
- Task next = enumerator.Current;
- EnqueueConditional(() => next.IsCompleted || next.IsFaulted);
- EnqueueCallback(() => ExecuteTestStep(enumerator));
- }
- else EnqueueTestComplete();
- }
- }
+using System;
+using System.Collections.Generic;
+using System.Reflection;
+using System.Threading.Tasks;
+using Microsoft.Silverlight.Testing;
+
+namespace Raven.Tests.Silverlight.UnitTestProvider
+{
+ public abstract class AsynchronousTaskTest : SilverlightTest
+ {
+ protected Task Delay(int milliseconds)
+ {
+ return TaskEx.Delay(TimeSpan.FromMilliseconds(milliseconds));
+ }
+
+ internal void ExecuteTest(MethodInfo test)
+ {
+ var tasks = (IEnumerable<Task>)test.Invoke(this, new object[] { });
+ IEnumerator<Task> enumerator = tasks.GetEnumerator();
+ ExecuteTestStep(enumerator);
+ }
+
+ internal void ExecuteTaskTest(MethodInfo test)
+ {
+ var task = (Task)test.Invoke(this, new object[] { });
+ EnqueueConditional(() => task.IsCompleted || task.IsFaulted);
+ EnqueueCallback(() =>
+ {
+ if (task.IsFaulted) throw task.Exception.InnerException;
+ });
+ EnqueueTestComplete();
+ }
+
+ private void ExecuteTestStep(IEnumerator<Task> enumerator)
+ {
+ bool moveNextSucceeded = enumerator.MoveNext();
+
+ if (moveNextSucceeded)
+ {
+ Task next = enumerator.Current;
+ EnqueueConditional(() => next.IsCompleted || next.IsFaulted);
+ EnqueueCallback(() => ExecuteTestStep(enumerator));
+ }
+ else EnqueueTestComplete();
+ }
+ }
}
@@ -1,41 +1,41 @@
-// (c) Copyright Microsoft Corporation.
-// This source is subject to the Microsoft Public License (Ms-PL).
-// Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
-// All other rights reserved.
-namespace Raven.Tests.Silverlight.UnitTestProvider
-{
- using System;
- using System.Diagnostics.CodeAnalysis;
- using Microsoft.Silverlight.Testing.UnitTesting.Metadata;
- using Microsoft.VisualStudio.TestTools.UnitTesting;
-
- [SuppressMessage("Microsoft.Naming", "CA1711:IdentifiersShouldNotHaveIncorrectSuffix",
- Justification = "Standard unit test framework naming")]
- public class ExpectedException : IExpectedException
- {
- readonly ExpectedExceptionAttribute exp;
-
- ExpectedException()
- {
- }
-
- public ExpectedException(ExpectedExceptionAttribute expectedExceptionAttribute)
- {
- exp = expectedExceptionAttribute;
- if (exp == null)
- {
- throw new ArgumentNullException("expectedExceptionAttribute");
- }
- }
-
- public Type ExceptionType
- {
- get { return exp.ExceptionType; }
- }
-
- public string Message
- {
- get { return exp.Message; }
- }
- }
+// (c) Copyright Microsoft Corporation.
+// This source is subject to the Microsoft Public License (Ms-PL).
+// Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
+// All other rights reserved.
+namespace Raven.Tests.Silverlight.UnitTestProvider
+{
+ using System;
+ using System.Diagnostics.CodeAnalysis;
+ using Microsoft.Silverlight.Testing.UnitTesting.Metadata;
+ using Microsoft.VisualStudio.TestTools.UnitTesting;
+
+ [SuppressMessage("Microsoft.Naming", "CA1711:IdentifiersShouldNotHaveIncorrectSuffix",
+ Justification = "Standard unit test framework naming")]
+ public class ExpectedException : IExpectedException
+ {
+ readonly ExpectedExceptionAttribute exp;
+
+ ExpectedException()
+ {
+ }
+
+ public ExpectedException(ExpectedExceptionAttribute expectedExceptionAttribute)
+ {
+ exp = expectedExceptionAttribute;
+ if (exp == null)
+ {
+ throw new ArgumentNullException("expectedExceptionAttribute");
+ }
+ }
+
+ public Type ExceptionType
+ {
+ get { return exp.ExceptionType; }
+ }
+
+ public string Message
+ {
+ get { return exp.Message; }
+ }
+ }
}
@@ -1,25 +1,25 @@
-// (c) Copyright Microsoft Corporation.
-// This source is subject to the Microsoft Public License (Ms-PL).
-// Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
-// All other rights reserved.
-namespace Raven.Tests.Silverlight.UnitTestProvider
-{
- using System.Globalization;
- using Microsoft.Silverlight.Testing.UnitTesting.Metadata;
-
- public class Priority : IPriority
- {
- public Priority(int priority)
- {
- Value = priority;
- }
-
- public int Value { get; private set; }
-
-
- public override string ToString()
- {
- return Value.ToString(CultureInfo.InvariantCulture);
- }
- }
+// (c) Copyright Microsoft Corporation.
+// This source is subject to the Microsoft Public License (Ms-PL).
+// Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
+// All other rights reserved.
+namespace Raven.Tests.Silverlight.UnitTestProvider
+{
+ using System.Globalization;
+ using Microsoft.Silverlight.Testing.UnitTesting.Metadata;
+
+ public class Priority : IPriority
+ {
+ public Priority(int priority)
+ {
+ Value = priority;
+ }
+
+ public int Value { get; private set; }
+
+
+ public override string ToString()
+ {
+ return Value.ToString(CultureInfo.InvariantCulture);
+ }
+ }
}
Oops, something went wrong.

0 comments on commit 70fb801

Please sign in to comment.