forked from tsai/mathnet-numerics
23 changed files with 0 additions and 1510 deletions
@ -1,27 +0,0 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<TestSettings name="Local" id="0046459d-be0e-4d4c-8154-b85ef3eca170" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010"> |
|||
<Description>These are default test settings for a local test run.</Description> |
|||
<Deployment enabled="false" /> |
|||
<Execution hostProcessPlatform="MSIL"> |
|||
<Hosts skipUnhostableTests="false" /> |
|||
<TestTypeSpecific> |
|||
<UnitTestRunConfig testTypeId="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b"> |
|||
<AssemblyResolution> |
|||
<TestDirectory useLoadContext="true" /> |
|||
</AssemblyResolution> |
|||
</UnitTestRunConfig> |
|||
<WebTestRunConfiguration testTypeId="4e7599fa-5ecb-43e9-a887-cd63cf72d207"> |
|||
<Browser name="Internet Explorer 7.0"> |
|||
<Headers> |
|||
<Header name="User-Agent" value="Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)" /> |
|||
<Header name="Accept" value="*/*" /> |
|||
<Header name="Accept-Language" value="{{$IEAcceptLanguage}}" /> |
|||
<Header name="Accept-Encoding" value="GZIP" /> |
|||
</Headers> |
|||
</Browser> |
|||
</WebTestRunConfiguration> |
|||
</TestTypeSpecific> |
|||
<AgentRule name="LocalMachineDefaultRole"> |
|||
</AgentRule> |
|||
</Execution> |
|||
</TestSettings> |
|||
@ -1,281 +0,0 @@ |
|||
// <copyright file="AssertHelpers.cs" company="Math.NET">
|
|||
// Math.NET Numerics, part of the Math.NET Project
|
|||
// http://numerics.mathdotnet.com
|
|||
// http://github.com/mathnet/mathnet-numerics
|
|||
// http://mathnetnumerics.codeplex.com
|
|||
//
|
|||
// Copyright (c) 2009-2010 Math.NET
|
|||
//
|
|||
// Permission is hereby granted, free of charge, to any person
|
|||
// obtaining a copy of this software and associated documentation
|
|||
// files (the "Software"), to deal in the Software without
|
|||
// restriction, including without limitation the rights to use,
|
|||
// copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|||
// copies of the Software, and to permit persons to whom the
|
|||
// Software is furnished to do so, subject to the following
|
|||
// conditions:
|
|||
//
|
|||
// The above copyright notice and this permission notice shall be
|
|||
// included in all copies or substantial portions of the Software.
|
|||
//
|
|||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|||
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|||
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|||
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|||
// OTHER DEALINGS IN THE SOFTWARE.
|
|||
// </copyright>
|
|||
|
|||
namespace MathNet.Numerics.UnitTests |
|||
{ |
|||
using System.Collections.Generic; |
|||
using System.Numerics; |
|||
using Microsoft.VisualStudio.TestTools.UnitTesting; |
|||
|
|||
/// <summary>
|
|||
/// A class which includes some assertion helper methods particularly for numerical code.
|
|||
/// </summary>
|
|||
internal class AssertHelpers |
|||
{ |
|||
/// <summary>
|
|||
/// Asserts that the expected value and the actual value are equal.
|
|||
/// </summary>
|
|||
/// <param name="expected">The expected value.</param>
|
|||
/// <param name="actual">The actual value.</param>
|
|||
public static void AreEqual(Complex expected, Complex actual) |
|||
{ |
|||
if (expected.IsNaN() && actual.IsNaN()) |
|||
{ |
|||
return; |
|||
} |
|||
|
|||
if (expected.IsInfinity() && expected.IsInfinity()) |
|||
{ |
|||
return; |
|||
} |
|||
|
|||
bool pass = expected.Real.AlmostEqual(actual.Real); |
|||
if (!pass) |
|||
{ |
|||
Assert.Fail("Real components are not equal. Expected:{0}; Actual:{1}", expected.Real, actual.Real); |
|||
} |
|||
|
|||
pass = expected.Imaginary.AlmostEqual(actual.Imaginary); |
|||
if (!pass) |
|||
{ |
|||
Assert.Fail("Imaginary components are not equal. Expected:{0}; Actual:{1}", expected.Imaginary, actual.Imaginary); |
|||
} |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Asserts that the expected value and the actual value are equal.
|
|||
/// </summary>
|
|||
/// <param name="expected">The expected value.</param>
|
|||
/// <param name="actual">The actual value.</param>
|
|||
public static void AreEqual(Complex32 expected, Complex32 actual) |
|||
{ |
|||
if (expected.IsNaN() && actual.IsNaN()) |
|||
{ |
|||
return; |
|||
} |
|||
|
|||
if (expected.IsInfinity() && expected.IsInfinity()) |
|||
{ |
|||
return; |
|||
} |
|||
|
|||
bool pass = expected.Real.AlmostEqual(actual.Real); |
|||
if (!pass) |
|||
{ |
|||
Assert.Fail("Real components are not equal. Expected:{0}; Actual:{1}", expected.Real, actual.Real); |
|||
} |
|||
|
|||
pass = expected.Imaginary.AlmostEqual(actual.Imaginary); |
|||
if (!pass) |
|||
{ |
|||
Assert.Fail("Imaginary components are not equal. Expected:{0}; Actual:{1}", expected.Imaginary, actual.Imaginary); |
|||
} |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Asserts that the expected value and the actual value are equal up to a certain number of decimal places. If both
|
|||
/// <paramref name="expected"/> and <paramref name="actual"/> are NaN then no assert is thrown.
|
|||
/// </summary>
|
|||
/// <param name="expected">The expected value.</param>
|
|||
/// <param name="actual">The actual value.</param>
|
|||
/// <param name="decimalPlaces">The number of decimal places to agree on.</param>
|
|||
public static void AlmostEqual(double expected, double actual, int decimalPlaces) |
|||
{ |
|||
if (double.IsNaN(expected) && double.IsNaN(actual)) |
|||
{ |
|||
return; |
|||
} |
|||
|
|||
bool pass = expected.AlmostEqualInDecimalPlaces(actual, decimalPlaces); |
|||
if (!pass) |
|||
{ |
|||
// signals Gallio that the test failed.
|
|||
Assert.Fail("Not equal within {0} places. Expected:{1}; Actual:{2}", decimalPlaces, expected, actual); |
|||
} |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Asserts that the expected value and the actual value are equal up to a certain number of decimal places. If both
|
|||
/// <paramref name="expected"/> and <paramref name="actual"/> are NaN then no assert is thrown.
|
|||
/// </summary>
|
|||
/// <param name="expected">The expected value.</param>
|
|||
/// <param name="actual">The actual value.</param>
|
|||
/// <param name="decimalPlaces">The number of decimal places to agree on.</param>
|
|||
public static void AlmostEqual(float expected, float actual, int decimalPlaces) |
|||
{ |
|||
if (float.IsNaN(expected) && float.IsNaN(actual)) |
|||
{ |
|||
return; |
|||
} |
|||
|
|||
bool pass = expected.AlmostEqualInDecimalPlaces(actual, decimalPlaces); |
|||
if (!pass) |
|||
{ |
|||
// signals Gallio that the test failed.
|
|||
Assert.Fail("Not equal within {0} places. Expected:{1}; Actual:{2}", decimalPlaces, expected, actual); |
|||
} |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Asserts that the expected value and the actual value are equal up to a certain number of decimal places.
|
|||
/// </summary>
|
|||
/// <param name="expected">The expected value.</param>
|
|||
/// <param name="actual">The actual value.</param>
|
|||
/// <param name="decimalPlaces">The number of decimal places to agree on.</param>
|
|||
public static void AlmostEqual(Complex expected, Complex actual, int decimalPlaces) |
|||
{ |
|||
bool pass = expected.Real.AlmostEqualInDecimalPlaces(actual.Real, decimalPlaces); |
|||
if (!pass) |
|||
{ |
|||
Assert.Fail("Real components are not equal within {0} places. Expected:{1}; Actual:{2}", decimalPlaces, expected.Real, actual.Real); |
|||
} |
|||
|
|||
pass = expected.Imaginary.AlmostEqualInDecimalPlaces(actual.Imaginary, decimalPlaces); |
|||
if (!pass) |
|||
{ |
|||
Assert.Fail("Imaginary components are not equal within {0} places. Expected:{1}; Actual:{2}", decimalPlaces, expected.Imaginary, actual.Imaginary); |
|||
} |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Asserts that the expected value and the actual value are equal up to a certain number of decimal places.
|
|||
/// </summary>
|
|||
/// <param name="expected">The expected value.</param>
|
|||
/// <param name="actual">The actual value.</param>
|
|||
/// <param name="decimalPlaces">The number of decimal places to agree on.</param>
|
|||
public static void AlmostEqual(Complex32 expected, Complex32 actual, int decimalPlaces) |
|||
{ |
|||
bool pass = expected.Real.AlmostEqualInDecimalPlaces(actual.Real, decimalPlaces); |
|||
if (!pass) |
|||
{ |
|||
Assert.Fail("Real components are not equal within {0} places. Expected:{1}; Actual:{2}", decimalPlaces, expected.Real, actual.Real); |
|||
} |
|||
|
|||
pass = expected.Imaginary.AlmostEqualInDecimalPlaces(actual.Imaginary, decimalPlaces); |
|||
if (!pass) |
|||
{ |
|||
Assert.Fail("Imaginary components are not equal within {0} places. Expected:{1}; Actual:{2}", decimalPlaces, expected.Imaginary, actual.Imaginary); |
|||
} |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Asserts that the expected value and the actual value are equal up to a certain
|
|||
/// maximum error.
|
|||
/// </summary>
|
|||
/// <typeparam name="T">The type of the structures. Must implement
|
|||
/// <see cref="IPrecisionSupport{T}"/>.</typeparam>
|
|||
/// <param name="expected">The expected value.</param>
|
|||
/// <param name="actual">The actual value.</param>
|
|||
/// <param name="maximumError">The accuracy required for being almost equal.</param>
|
|||
public static void AlmostEqual<T>(T expected, T actual, double maximumError) |
|||
where T : IPrecisionSupport<T> |
|||
{ |
|||
if (!actual.AlmostEqualWithError(expected, maximumError)) |
|||
{ |
|||
Assert.Fail("Not equal within a maximum error {0}. Expected:{1}; Actual:{2}", maximumError, expected, actual); |
|||
} |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Asserts that the expected value and the actual value are equal up to a certain
|
|||
/// maximum error.
|
|||
/// </summary>
|
|||
/// <param name="expected">The expected value list.</param>
|
|||
/// <param name="actual">The actual value list.</param>
|
|||
/// <param name="maximumError">The accuracy required for being almost equal.</param>
|
|||
public static void AlmostEqualList(IList<double> expected, IList<double> actual, double maximumError) |
|||
{ |
|||
for (int i = 0; i < expected.Count; i++) |
|||
{ |
|||
if (!actual[i].AlmostEqualWithError(expected[i], maximumError)) |
|||
{ |
|||
Assert.Fail("Not equal within a maximum error {0}. Expected:{1}; Actual:{2}", maximumError, expected[i], actual[i]); |
|||
} |
|||
} |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Asserts that the expected value and the actual value are equal up to a certain
|
|||
/// maximum error.
|
|||
/// </summary>
|
|||
/// <param name="expected">The expected value list.</param>
|
|||
/// <param name="actual">The actual value list.</param>
|
|||
/// <param name="maximumError">The accuracy required for being almost equal.</param>
|
|||
public static void AlmostEqualList(IList<float> expected, IList<float> actual, double maximumError) |
|||
{ |
|||
for (int i = 0; i < expected.Count; i++) |
|||
{ |
|||
if (!actual[i].AlmostEqualWithError(expected[i], maximumError)) |
|||
{ |
|||
Assert.Fail("Not equal within a maximum error {0}. Expected:{1}; Actual:{2}", maximumError, expected[i], actual[i]); |
|||
} |
|||
} |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Asserts that the expected value and the actual value are equal up to a certain
|
|||
/// maximum error.
|
|||
/// </summary>
|
|||
/// <typeparam name="T">The type of the structures. Must implement
|
|||
/// <see cref="IPrecisionSupport{T}"/>.</typeparam>
|
|||
/// <param name="expected">The expected value list.</param>
|
|||
/// <param name="actual">The actual value list.</param>
|
|||
/// <param name="maximumError">The accuracy required for being almost equal.</param>
|
|||
public static void AlmostEqualList<T>(IList<T> expected, IList<T> actual, double maximumError) |
|||
where T : IPrecisionSupport<T> |
|||
{ |
|||
for (int i = 0; i < expected.Count; i++) |
|||
{ |
|||
if (!actual[i].AlmostEqualWithError(expected[i], maximumError)) |
|||
{ |
|||
Assert.Fail("Not equal within a maximum error {0}. Expected:{1}; Actual:{2}", maximumError, expected[i], actual[i]); |
|||
} |
|||
} |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Asserts that the expected value and the actual value are equal up to a certain
|
|||
/// maximum error.
|
|||
/// </summary>
|
|||
/// <param name="expected">The expected value list.</param>
|
|||
/// <param name="actual">The actual value list.</param>
|
|||
/// <param name="maximumError">The accuracy required for being almost equal.</param>
|
|||
public static void AlmostEqualList(IList<Complex> expected, IList<Complex> actual, double maximumError) |
|||
{ |
|||
for (int i = 0; i < expected.Count; i++) |
|||
{ |
|||
if (!actual[i].AlmostEqualWithError(expected[i], maximumError)) |
|||
{ |
|||
Assert.Fail("Not equal within a maximum error {0}. Expected:{1}; Actual:{2}", maximumError, expected[i], actual[i]); |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
@ -1,439 +0,0 @@ |
|||
// <copyright file="LinearAlgebraProviderTests.cs" company="Math.NET">
|
|||
// Math.NET Numerics, part of the Math.NET Project
|
|||
// http://numerics.mathdotnet.com
|
|||
// http://github.com/mathnet/mathnet-numerics
|
|||
// http://mathnetnumerics.codeplex.com
|
|||
//
|
|||
// Copyright (c) 2009-2010 Math.NET
|
|||
//
|
|||
// Permission is hereby granted, free of charge, to any person
|
|||
// obtaining a copy of this software and associated documentation
|
|||
// files (the "Software"), to deal in the Software without
|
|||
// restriction, including without limitation the rights to use,
|
|||
// copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|||
// copies of the Software, and to permit persons to whom the
|
|||
// Software is furnished to do so, subject to the following
|
|||
// conditions:
|
|||
//
|
|||
// The above copyright notice and this permission notice shall be
|
|||
// included in all copies or substantial portions of the Software.
|
|||
//
|
|||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|||
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|||
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|||
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|||
// OTHER DEALINGS IN THE SOFTWARE.
|
|||
// </copyright>
|
|||
namespace MathNet.Numerics.UnitTests.LinearAlgebraProviderTests.Double |
|||
{ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using Algorithms.LinearAlgebra; |
|||
using LinearAlgebra.Double; |
|||
using Microsoft.VisualStudio.TestTools.UnitTesting; |
|||
|
|||
/// <summary>
|
|||
/// Base class for linear algebra provider tests.
|
|||
/// </summary>
|
|||
[TestClass] |
|||
public class LinearAlgebraProviderTests |
|||
{ |
|||
/// <summary>
|
|||
/// Initializes a new instance of the <see cref="LinearAlgebraProviderTests"/> class.
|
|||
/// </summary>
|
|||
public LinearAlgebraProviderTests() |
|||
{ |
|||
Provider = new ManagedLinearAlgebraProvider(); |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Gets or sets linear algebra provider to test.
|
|||
/// </summary>
|
|||
protected ILinearAlgebraProvider Provider |
|||
{ |
|||
get; |
|||
set; |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// The Y double test vector.
|
|||
/// </summary>
|
|||
private readonly double[] _y = new[] { 1.1, 2.2, 3.3, 4.4, 5.5 }; |
|||
|
|||
/// <summary>
|
|||
/// The X double test vector.
|
|||
/// </summary>
|
|||
private readonly double[] _x = new[] { 6.6, 7.7, 8.8, 9.9, 10.1 }; |
|||
|
|||
/// <summary>
|
|||
/// Test matrix to use.
|
|||
/// </summary>
|
|||
private readonly IDictionary<string, DenseMatrix> _matrices = new Dictionary<string, DenseMatrix> |
|||
{ |
|||
{ "Singular3x3", new DenseMatrix(new[,] { { 1.0, 1.0, 2.0 }, { 1.0, 1.0, 2.0 }, { 1.0, 1.0, 2.0 } }) }, |
|||
{ "Square3x3", new DenseMatrix(new[,] { { -1.1, -2.2, -3.3 }, { 0.0, 1.1, 2.2 }, { -4.4, 5.5, 6.6 } }) }, |
|||
{ "Square4x4", new DenseMatrix(new[,] { { -1.1, -2.2, -3.3, -4.4 }, { 0.0, 1.1, 2.2, 3.3 }, { 1.0, 2.1, 6.2, 4.3 }, { -4.4, 5.5, 6.6, -7.7 } }) }, |
|||
{ "Singular4x4", new DenseMatrix(new[,] { { -1.1, -2.2, -3.3, -4.4 }, { -1.1, -2.2, -3.3, -4.4 }, { -1.1, -2.2, -3.3, -4.4 }, { -1.1, -2.2, -3.3, -4.4 } }) }, |
|||
{ "Tall3x2", new DenseMatrix(new[,] { { -1.1, -2.2 }, { 0.0, 1.1 }, { -4.4, 5.5 } }) }, |
|||
{ "Wide2x3", new DenseMatrix(new[,] { { -1.1, -2.2, -3.3 }, { 0.0, 1.1, 2.2 } }) } |
|||
}; |
|||
|
|||
/// <summary>
|
|||
/// Can add a vector to scaled vector
|
|||
/// </summary>
|
|||
[TestMethod] |
|||
public void CanAddVectorToScaledVectorDouble() |
|||
{ |
|||
var result = new double[_y.Length]; |
|||
Array.Copy(_y, result, _y.Length); |
|||
|
|||
Provider.AddVectorToScaledVector(result, 0, _x); |
|||
for (var i = 0; i < _y.Length; i++) |
|||
{ |
|||
Assert.AreEqual(_y[i], result[i]); |
|||
} |
|||
|
|||
Array.Copy(_y, result, _y.Length); |
|||
Provider.AddVectorToScaledVector(result, 1, _x); |
|||
for (var i = 0; i < _y.Length; i++) |
|||
{ |
|||
Assert.AreEqual(_y[i] + _x[i], result[i]); |
|||
} |
|||
|
|||
Array.Copy(_y, result, _y.Length); |
|||
Provider.AddVectorToScaledVector(result, Math.PI, _x); |
|||
for (var i = 0; i < _y.Length; i++) |
|||
{ |
|||
Assert.AreEqual(_y[i] + (Math.PI * _x[i]), result[i]); |
|||
} |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Can scale an array.
|
|||
/// </summary>
|
|||
[TestMethod] |
|||
public void CanScaleArray() |
|||
{ |
|||
var result = new double[_y.Length]; |
|||
|
|||
Array.Copy(_y, result, _y.Length); |
|||
Provider.ScaleArray(1, result); |
|||
for (var i = 0; i < _y.Length; i++) |
|||
{ |
|||
Assert.AreEqual(_y[i], result[i]); |
|||
} |
|||
|
|||
Array.Copy(_y, result, _y.Length); |
|||
Provider.ScaleArray(Math.PI, result); |
|||
for (var i = 0; i < _y.Length; i++) |
|||
{ |
|||
Assert.AreEqual(_y[i] * Math.PI, result[i]); |
|||
} |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Can compute the dot product.
|
|||
/// </summary>
|
|||
[TestMethod] |
|||
public void CanComputeDotProduct() |
|||
{ |
|||
var result = Provider.DotProduct(_x, _y); |
|||
AssertHelpers.AlmostEqual(152.35, result, 15); |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Can add two arrays.
|
|||
/// </summary>
|
|||
[TestMethod] |
|||
public void CanAddArrays() |
|||
{ |
|||
var result = new double[_y.Length]; |
|||
Provider.AddArrays(_x, _y, result); |
|||
for (var i = 0; i < result.Length; i++) |
|||
{ |
|||
Assert.AreEqual(_x[i] + _y[i], result[i]); |
|||
} |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Can subtract two arrays.
|
|||
/// </summary>
|
|||
[TestMethod] |
|||
public void CanSubtractArrays() |
|||
{ |
|||
var result = new double[_y.Length]; |
|||
Provider.SubtractArrays(_x, _y, result); |
|||
for (var i = 0; i < result.Length; i++) |
|||
{ |
|||
Assert.AreEqual(_x[i] - _y[i], result[i]); |
|||
} |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Can pointwise multiply two arrays.
|
|||
/// </summary>
|
|||
[TestMethod] |
|||
public void CanPointWiseMultiplyArrays() |
|||
{ |
|||
var result = new double[_y.Length]; |
|||
Provider.PointWiseMultiplyArrays(_x, _y, result); |
|||
for (var i = 0; i < result.Length; i++) |
|||
{ |
|||
Assert.AreEqual(_x[i] * _y[i], result[i]); |
|||
} |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Can compute L1 norm.
|
|||
/// </summary>
|
|||
[TestMethod] |
|||
public void CanComputeMatrixL1Norm() |
|||
{ |
|||
var matrix = _matrices["Square3x3"]; |
|||
var work = new double[matrix.RowCount]; |
|||
var norm = Provider.MatrixNorm(Norm.OneNorm, matrix.RowCount, matrix.ColumnCount, matrix.Data, work); |
|||
AssertHelpers.AlmostEqual(12.1, norm, 6); |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Can compute Frobenius norm.
|
|||
/// </summary>
|
|||
[TestMethod] |
|||
public void CanComputeMatrixFrobeniusNorm() |
|||
{ |
|||
var matrix = _matrices["Square3x3"]; |
|||
var work = new double[matrix.RowCount]; |
|||
var norm = Provider.MatrixNorm(Norm.FrobeniusNorm, matrix.RowCount, matrix.ColumnCount, matrix.Data, work); |
|||
AssertHelpers.AlmostEqual(10.777754868246, norm, 8); |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Can compute Infinity norm.
|
|||
/// </summary>
|
|||
[TestMethod] |
|||
public void CanComputeMatrixInfinityNorm() |
|||
{ |
|||
var matrix = _matrices["Square3x3"]; |
|||
var work = new double[matrix.RowCount]; |
|||
var norm = Provider.MatrixNorm(Norm.InfinityNorm, matrix.RowCount, matrix.ColumnCount, matrix.Data, work); |
|||
Assert.AreEqual(16.5, norm); |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Can compute L1 norm using a work array.
|
|||
/// </summary>
|
|||
[TestMethod] |
|||
public void CanComputeMatrixL1NormWithWorkArray() |
|||
{ |
|||
var matrix = _matrices["Square3x3"]; |
|||
var norm = Provider.MatrixNorm(Norm.OneNorm, matrix.RowCount, matrix.ColumnCount, matrix.Data); |
|||
AssertHelpers.AlmostEqual(12.1, norm, 6); |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Can compute Frobenius norm using a work array.
|
|||
/// </summary>
|
|||
[TestMethod] |
|||
public void CanComputeMatrixFrobeniusNormWithWorkArray() |
|||
{ |
|||
var matrix = _matrices["Square3x3"]; |
|||
var norm = Provider.MatrixNorm(Norm.FrobeniusNorm, matrix.RowCount, matrix.ColumnCount, matrix.Data); |
|||
AssertHelpers.AlmostEqual(10.777754868246, norm, 8); |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Can compute Infinity norm using a work array.
|
|||
/// </summary>
|
|||
[TestMethod] |
|||
public void CanComputeMatrixInfinityNormWithWorkArray() |
|||
{ |
|||
var matrix = _matrices["Square3x3"]; |
|||
var norm = Provider.MatrixNorm(Norm.InfinityNorm, matrix.RowCount, matrix.ColumnCount, matrix.Data); |
|||
Assert.AreEqual(16.5, norm); |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Can multiply two square matrices.
|
|||
/// </summary>
|
|||
[TestMethod] |
|||
public void CanMultiplySquareMatrices() |
|||
{ |
|||
var x = _matrices["Singular3x3"]; |
|||
var y = _matrices["Square3x3"]; |
|||
var c = new DenseMatrix(x.RowCount, y.ColumnCount); |
|||
|
|||
Provider.MatrixMultiply(x.Data, x.RowCount, x.ColumnCount, y.Data, y.RowCount, y.ColumnCount, c.Data); |
|||
|
|||
for (var i = 0; i < c.RowCount; i++) |
|||
{ |
|||
for (var j = 0; j < c.ColumnCount; j++) |
|||
{ |
|||
AssertHelpers.AlmostEqual(x.Row(i) * y.Column(j), c[i, j], 15); |
|||
} |
|||
} |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Can multiply a wide and tall matrix.
|
|||
/// </summary>
|
|||
[TestMethod] |
|||
public void CanMultiplyWideAndTallMatrices() |
|||
{ |
|||
var x = _matrices["Wide2x3"]; |
|||
var y = _matrices["Tall3x2"]; |
|||
var c = new DenseMatrix(x.RowCount, y.ColumnCount); |
|||
|
|||
Provider.MatrixMultiply(x.Data, x.RowCount, x.ColumnCount, y.Data, y.RowCount, y.ColumnCount, c.Data); |
|||
|
|||
for (var i = 0; i < c.RowCount; i++) |
|||
{ |
|||
for (var j = 0; j < c.ColumnCount; j++) |
|||
{ |
|||
AssertHelpers.AlmostEqual(x.Row(i) * y.Column(j), c[i, j], 15); |
|||
} |
|||
} |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Can multiply a tall and wide matrix.
|
|||
/// </summary>
|
|||
[TestMethod] |
|||
public void CanMultiplyTallAndWideMatrices() |
|||
{ |
|||
var x = _matrices["Tall3x2"]; |
|||
var y = _matrices["Wide2x3"]; |
|||
var c = new DenseMatrix(x.RowCount, y.ColumnCount); |
|||
|
|||
Provider.MatrixMultiply(x.Data, x.RowCount, x.ColumnCount, y.Data, y.RowCount, y.ColumnCount, c.Data); |
|||
|
|||
for (var i = 0; i < c.RowCount; i++) |
|||
{ |
|||
for (var j = 0; j < c.ColumnCount; j++) |
|||
{ |
|||
AssertHelpers.AlmostEqual(x.Row(i) * y.Column(j), c[i, j], 15); |
|||
} |
|||
} |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Can multiply two square matrices.
|
|||
/// </summary>
|
|||
[TestMethod] |
|||
public void CanMultiplySquareMatricesWithUpdate() |
|||
{ |
|||
var x = _matrices["Singular3x3"]; |
|||
var y = _matrices["Square3x3"]; |
|||
var c = new DenseMatrix(x.RowCount, y.ColumnCount); |
|||
|
|||
Provider.MatrixMultiplyWithUpdate(Transpose.DontTranspose, Transpose.DontTranspose, 2.2, x.Data, x.RowCount, x.ColumnCount, y.Data, y.RowCount, y.ColumnCount, 1.0, c.Data); |
|||
|
|||
for (var i = 0; i < c.RowCount; i++) |
|||
{ |
|||
for (var j = 0; j < c.ColumnCount; j++) |
|||
{ |
|||
AssertHelpers.AlmostEqual(2.2 * x.Row(i) * y.Column(j), c[i, j], 15); |
|||
} |
|||
} |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Can multiply a wide and tall matrix.
|
|||
/// </summary>
|
|||
[TestMethod] |
|||
public void CanMultiplyWideAndTallMatricesWithUpdate() |
|||
{ |
|||
var x = _matrices["Wide2x3"]; |
|||
var y = _matrices["Tall3x2"]; |
|||
var c = new DenseMatrix(x.RowCount, y.ColumnCount); |
|||
|
|||
Provider.MatrixMultiplyWithUpdate(Transpose.DontTranspose, Transpose.DontTranspose, 2.2, x.Data, x.RowCount, x.ColumnCount, y.Data, y.RowCount, y.ColumnCount, 1.0, c.Data); |
|||
|
|||
for (var i = 0; i < c.RowCount; i++) |
|||
{ |
|||
for (var j = 0; j < c.ColumnCount; j++) |
|||
{ |
|||
AssertHelpers.AlmostEqual(2.2 * x.Row(i) * y.Column(j), c[i, j], 15); |
|||
} |
|||
} |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Can multiply a tall and wide matrix.
|
|||
/// </summary>
|
|||
[TestMethod] |
|||
public void CanMultiplyTallAndWideMatricesWithUpdate() |
|||
{ |
|||
var x = _matrices["Tall3x2"]; |
|||
var y = _matrices["Wide2x3"]; |
|||
var c = new DenseMatrix(x.RowCount, y.ColumnCount); |
|||
|
|||
Provider.MatrixMultiplyWithUpdate(Transpose.DontTranspose, Transpose.DontTranspose, 2.2, x.Data, x.RowCount, x.ColumnCount, y.Data, y.RowCount, y.ColumnCount, 1.0, c.Data); |
|||
|
|||
for (var i = 0; i < c.RowCount; i++) |
|||
{ |
|||
for (var j = 0; j < c.ColumnCount; j++) |
|||
{ |
|||
AssertHelpers.AlmostEqual(2.2 * x.Row(i) * y.Column(j), c[i, j], 15); |
|||
} |
|||
} |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Can compute the Cholesky factorization.
|
|||
/// </summary>
|
|||
[TestMethod] |
|||
public void CanComputeCholeskyFactor() |
|||
{ |
|||
var matrix = new double[] { 1, 1, 1, 1, 1, 5, 5, 5, 1, 5, 14, 14, 1, 5, 14, 15 }; |
|||
Provider.CholeskyFactor(matrix, 4); |
|||
Assert.AreEqual(matrix[0], 1); |
|||
Assert.AreEqual(matrix[1], 1); |
|||
Assert.AreEqual(matrix[2], 1); |
|||
Assert.AreEqual(matrix[3], 1); |
|||
Assert.AreEqual(matrix[4], 0); |
|||
Assert.AreEqual(matrix[5], 2); |
|||
Assert.AreEqual(matrix[6], 2); |
|||
Assert.AreEqual(matrix[7], 2); |
|||
Assert.AreEqual(matrix[8], 0); |
|||
Assert.AreEqual(matrix[9], 0); |
|||
Assert.AreEqual(matrix[10], 3); |
|||
Assert.AreEqual(matrix[11], 3); |
|||
Assert.AreEqual(matrix[12], 0); |
|||
Assert.AreEqual(matrix[13], 0); |
|||
Assert.AreEqual(matrix[14], 0); |
|||
Assert.AreEqual(matrix[15], 1); |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Can compute the LU factor of a matrix.
|
|||
/// </summary>
|
|||
[TestMethod] |
|||
public void CanComputeLuFactor() |
|||
{ |
|||
var matrix = _matrices["Square3x3"]; |
|||
var a = new double[matrix.RowCount * matrix.RowCount]; |
|||
Array.Copy(matrix.Data, a, a.Length); |
|||
|
|||
var ipiv = new int[matrix.RowCount]; |
|||
|
|||
Provider.LUFactor(a, matrix.RowCount, ipiv); |
|||
|
|||
AssertHelpers.AlmostEqual(a[0], -4.4, 15); |
|||
AssertHelpers.AlmostEqual(a[1], 0.25, 15); |
|||
AssertHelpers.AlmostEqual(a[2], 0, 15); |
|||
AssertHelpers.AlmostEqual(a[3], 5.5, 15); |
|||
AssertHelpers.AlmostEqual(a[4], -3.575, 15); |
|||
AssertHelpers.AlmostEqual(a[5], -0.307692307692308, 15); |
|||
AssertHelpers.AlmostEqual(a[6], 6.6, 15); |
|||
AssertHelpers.AlmostEqual(a[7], -4.95, 15); |
|||
AssertHelpers.AlmostEqual(a[8], 0.676923076923077, 15); |
|||
|
|||
Assert.AreEqual(ipiv[0], 2); |
|||
Assert.AreEqual(ipiv[1], 2); |
|||
Assert.AreEqual(ipiv[2], 2); |
|||
} |
|||
} |
|||
} |
|||
@ -1,67 +0,0 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
|||
<PropertyGroup> |
|||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
|||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
|||
<ProductVersion> |
|||
</ProductVersion> |
|||
<SchemaVersion>2.0</SchemaVersion> |
|||
<ProjectGuid>{624FB757-A724-4B0D-85EB-F0563CE43A33}</ProjectGuid> |
|||
<OutputType>Library</OutputType> |
|||
<AppDesignerFolder>Properties</AppDesignerFolder> |
|||
<RootNamespace>MathNet.Numerics.UnitTests</RootNamespace> |
|||
<AssemblyName>MathNet.Numerics.MSUnitTests</AssemblyName> |
|||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> |
|||
<FileAlignment>512</FileAlignment> |
|||
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> |
|||
</PropertyGroup> |
|||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
|||
<DebugSymbols>true</DebugSymbols> |
|||
<DebugType>full</DebugType> |
|||
<Optimize>false</Optimize> |
|||
<OutputPath>..\..\out\test\debug\Net40\</OutputPath> |
|||
<DefineConstants>DEBUG;TRACE</DefineConstants> |
|||
<ErrorReport>prompt</ErrorReport> |
|||
<WarningLevel>4</WarningLevel> |
|||
</PropertyGroup> |
|||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
|||
<DebugType>pdbonly</DebugType> |
|||
<Optimize>true</Optimize> |
|||
<OutputPath>..\..\out\test\Net40\</OutputPath> |
|||
<DefineConstants>TRACE</DefineConstants> |
|||
<ErrorReport>prompt</ErrorReport> |
|||
<WarningLevel>4</WarningLevel> |
|||
</PropertyGroup> |
|||
<ItemGroup> |
|||
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" /> |
|||
<Reference Include="System" /> |
|||
<Reference Include="System.Core"> |
|||
<RequiredTargetFramework>3.5</RequiredTargetFramework> |
|||
</Reference> |
|||
<Reference Include="System.Numerics" /> |
|||
</ItemGroup> |
|||
<ItemGroup> |
|||
<CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> |
|||
<Visible>False</Visible> |
|||
</CodeAnalysisDependentAssemblyPaths> |
|||
</ItemGroup> |
|||
<ItemGroup> |
|||
<Compile Include="AssertHelpers.cs" /> |
|||
<Compile Include="LinearAlgebraProviderTests\Double\LinearAlgebraProviderTests.cs" /> |
|||
<Compile Include="Properties\AssemblyInfo.cs" /> |
|||
</ItemGroup> |
|||
<ItemGroup> |
|||
<ProjectReference Include="..\Numerics\Numerics.csproj"> |
|||
<Project>{B7CAE5F4-A23F-4438-B5BE-41226618B695}</Project> |
|||
<Name>Numerics</Name> |
|||
</ProjectReference> |
|||
</ItemGroup> |
|||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> |
|||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
|||
Other similar extension points exist, see Microsoft.Common.targets. |
|||
<Target Name="BeforeBuild"> |
|||
</Target> |
|||
<Target Name="AfterBuild"> |
|||
</Target> |
|||
--> |
|||
</Project> |
|||
@ -1,35 +0,0 @@ |
|||
using System.Reflection; |
|||
using System.Runtime.CompilerServices; |
|||
using System.Runtime.InteropServices; |
|||
|
|||
// General Information about an assembly is controlled through the following
|
|||
// set of attributes. Change these attribute values to modify the information
|
|||
// associated with an assembly.
|
|||
[assembly: AssemblyTitle("MSUnitTests")] |
|||
[assembly: AssemblyDescription("")] |
|||
[assembly: AssemblyConfiguration("")] |
|||
[assembly: AssemblyCompany("Microsoft")] |
|||
[assembly: AssemblyProduct("MSUnitTests")] |
|||
[assembly: AssemblyCopyright("Copyright © Microsoft 2010")] |
|||
[assembly: AssemblyTrademark("")] |
|||
[assembly: AssemblyCulture("")] |
|||
|
|||
// Setting ComVisible to false makes the types in this assembly not visible
|
|||
// to COM components. If you need to access a type in this assembly from
|
|||
// COM, set the ComVisible attribute to true on that type.
|
|||
[assembly: ComVisible(false)] |
|||
|
|||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
|||
[assembly: Guid("38b7aca0-5350-4ed4-9637-ae52b0107e48")] |
|||
|
|||
// Version information for an assembly consists of the following four values:
|
|||
//
|
|||
// Major Version
|
|||
// Minor Version
|
|||
// Build Number
|
|||
// Revision
|
|||
//
|
|||
// You can specify all the values or you can default the Build and Revision Numbers
|
|||
// by using the '*' as shown below:
|
|||
[assembly: AssemblyVersion("1.0.0.0")] |
|||
[assembly: AssemblyFileVersion("1.0.0.0")] |
|||
@ -1,6 +0,0 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<TestLists xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010"> |
|||
<TestList name="Lists of Tests" id="8c43106b-9dc1-4907-a29f-aa66a61bf5b6"> |
|||
<RunConfiguration id="0046459d-be0e-4d4c-8154-b85ef3eca170" name="Local" storage="local.testsettings" type="Microsoft.VisualStudio.TestTools.Common.TestRunConfiguration, Microsoft.VisualStudio.QualityTools.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
|||
</TestList> |
|||
</TestLists> |
|||
Binary file not shown.
@ -1,35 +0,0 @@ |
|||
using System.Reflection; |
|||
using System.Runtime.CompilerServices; |
|||
using System.Runtime.InteropServices; |
|||
|
|||
// General Information about an assembly is controlled through the following
|
|||
// set of attributes. Change these attribute values to modify the information
|
|||
// associated with an assembly.
|
|||
[assembly: AssemblyTitle("SilverlightUnitTests.Web")] |
|||
[assembly: AssemblyDescription("")] |
|||
[assembly: AssemblyConfiguration("")] |
|||
[assembly: AssemblyCompany("Microsoft")] |
|||
[assembly: AssemblyProduct("SilverlightUnitTests.Web")] |
|||
[assembly: AssemblyCopyright("Copyright © Microsoft 2010")] |
|||
[assembly: AssemblyTrademark("")] |
|||
[assembly: AssemblyCulture("")] |
|||
|
|||
// Setting ComVisible to false makes the types in this assembly not visible
|
|||
// to COM components. If you need to access a type in this assembly from
|
|||
// COM, set the ComVisible attribute to true on that type.
|
|||
[assembly: ComVisible(false)] |
|||
|
|||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
|||
[assembly: Guid("5868b737-92b9-4ca4-bdd8-f86f35a777f2")] |
|||
|
|||
// Version information for an assembly consists of the following four values:
|
|||
//
|
|||
// Major Version
|
|||
// Minor Version
|
|||
// Build Number
|
|||
// Revision
|
|||
//
|
|||
// You can specify all the values or you can default the Revision and Build Numbers
|
|||
// by using the '*' as shown below:
|
|||
[assembly: AssemblyVersion("1.0.0.0")] |
|||
[assembly: AssemblyFileVersion("1.0.0.0")] |
|||
File diff suppressed because one or more lines are too long
@ -1,98 +0,0 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
|||
<PropertyGroup> |
|||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
|||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
|||
<ProductVersion> |
|||
</ProductVersion> |
|||
<SchemaVersion>2.0</SchemaVersion> |
|||
<ProjectGuid>{955CBD46-9E5E-454D-8BA8-087C3AD36CE8}</ProjectGuid> |
|||
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids> |
|||
<OutputType>Library</OutputType> |
|||
<AppDesignerFolder>Properties</AppDesignerFolder> |
|||
<RootNamespace>SilverlightUnitTests.Web</RootNamespace> |
|||
<AssemblyName>SilverlightUnitTests.Web</AssemblyName> |
|||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> |
|||
<SilverlightApplicationList>{2E7CF5BB-2E02-4654-8964-79675F535727}|..\SilverlightUnitTests\SilverlightUnitTests.csproj|ClientBin|False</SilverlightApplicationList> |
|||
</PropertyGroup> |
|||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
|||
<DebugSymbols>true</DebugSymbols> |
|||
<DebugType>full</DebugType> |
|||
<Optimize>false</Optimize> |
|||
<OutputPath>bin\</OutputPath> |
|||
<DefineConstants>DEBUG;TRACE</DefineConstants> |
|||
<ErrorReport>prompt</ErrorReport> |
|||
<WarningLevel>4</WarningLevel> |
|||
</PropertyGroup> |
|||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
|||
<DebugType>pdbonly</DebugType> |
|||
<Optimize>true</Optimize> |
|||
<OutputPath>bin\</OutputPath> |
|||
<DefineConstants>TRACE</DefineConstants> |
|||
<ErrorReport>prompt</ErrorReport> |
|||
<WarningLevel>4</WarningLevel> |
|||
</PropertyGroup> |
|||
<ItemGroup> |
|||
<Reference Include="Microsoft.CSharp" /> |
|||
<Reference Include="System.Web.DynamicData" /> |
|||
<Reference Include="System.Web.Entity" /> |
|||
<Reference Include="System.Web.ApplicationServices" /> |
|||
<Reference Include="System" /> |
|||
<Reference Include="System.Data" /> |
|||
<Reference Include="System.Core" /> |
|||
<Reference Include="System.Data.DataSetExtensions" /> |
|||
<Reference Include="System.Web.Extensions" /> |
|||
<Reference Include="System.Xml.Linq" /> |
|||
<Reference Include="System.Drawing" /> |
|||
<Reference Include="System.Web" /> |
|||
<Reference Include="System.Xml" /> |
|||
<Reference Include="System.Configuration" /> |
|||
<Reference Include="System.Web.Services" /> |
|||
<Reference Include="System.EnterpriseServices" /> |
|||
</ItemGroup> |
|||
<ItemGroup> |
|||
<Content Include="ClientBin\SilverlightUnitTests.xap" /> |
|||
<Content Include="Silverlight.js" /> |
|||
<Content Include="SilverlightUnitTestsTestPage.aspx" /> |
|||
<Content Include="SilverlightUnitTestsTestPage.html" /> |
|||
<Content Include="Web.config" /> |
|||
<Content Include="Web.Debug.config"> |
|||
<DependentUpon>Web.config</DependentUpon> |
|||
</Content> |
|||
<Content Include="Web.Release.config"> |
|||
<DependentUpon>Web.config</DependentUpon> |
|||
</Content> |
|||
</ItemGroup> |
|||
<ItemGroup> |
|||
<Compile Include="Properties\AssemblyInfo.cs" /> |
|||
</ItemGroup> |
|||
<ItemGroup /> |
|||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> |
|||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" /> |
|||
<ProjectExtensions> |
|||
<VisualStudio> |
|||
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}"> |
|||
<WebProjectProperties> |
|||
<UseIIS>False</UseIIS> |
|||
<AutoAssignPort>True</AutoAssignPort> |
|||
<DevelopmentServerPort>40188</DevelopmentServerPort> |
|||
<DevelopmentServerVPath>/</DevelopmentServerVPath> |
|||
<IISUrl> |
|||
</IISUrl> |
|||
<NTLMAuthentication>False</NTLMAuthentication> |
|||
<UseCustomServer>False</UseCustomServer> |
|||
<CustomServerUrl> |
|||
</CustomServerUrl> |
|||
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile> |
|||
</WebProjectProperties> |
|||
</FlavorProperties> |
|||
</VisualStudio> |
|||
</ProjectExtensions> |
|||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
|||
Other similar extension points exist, see Microsoft.Common.targets. |
|||
<Target Name="BeforeBuild"> |
|||
</Target> |
|||
<Target Name="AfterBuild"> |
|||
</Target> |
|||
--> |
|||
</Project> |
|||
@ -1,74 +0,0 @@ |
|||
<%@ Page Language="C#" AutoEventWireup="true" %> |
|||
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|||
<html xmlns="http://www.w3.org/1999/xhtml" > |
|||
<head runat="server"> |
|||
<title>SilverlightUnitTests</title> |
|||
<style type="text/css"> |
|||
html, body { |
|||
height: 100%; |
|||
overflow: auto; |
|||
} |
|||
body { |
|||
padding: 0; |
|||
margin: 0; |
|||
} |
|||
#silverlightControlHost { |
|||
height: 100%; |
|||
text-align:center; |
|||
} |
|||
</style> |
|||
<script type="text/javascript" src="Silverlight.js"></script> |
|||
<script type="text/javascript"> |
|||
function onSilverlightError(sender, args) { |
|||
var appSource = ""; |
|||
if (sender != null && sender != 0) { |
|||
appSource = sender.getHost().Source; |
|||
} |
|||
|
|||
var errorType = args.ErrorType; |
|||
var iErrorCode = args.ErrorCode; |
|||
|
|||
if (errorType == "ImageError" || errorType == "MediaError") { |
|||
return; |
|||
} |
|||
|
|||
var errMsg = "Unhandled Error in Silverlight Application " + appSource + "\n" ; |
|||
|
|||
errMsg += "Code: "+ iErrorCode + " \n"; |
|||
errMsg += "Category: " + errorType + " \n"; |
|||
errMsg += "Message: " + args.ErrorMessage + " \n"; |
|||
|
|||
if (errorType == "ParserError") { |
|||
errMsg += "File: " + args.xamlFile + " \n"; |
|||
errMsg += "Line: " + args.lineNumber + " \n"; |
|||
errMsg += "Position: " + args.charPosition + " \n"; |
|||
} |
|||
else if (errorType == "RuntimeError") { |
|||
if (args.lineNumber != 0) { |
|||
errMsg += "Line: " + args.lineNumber + " \n"; |
|||
errMsg += "Position: " + args.charPosition + " \n"; |
|||
} |
|||
errMsg += "MethodName: " + args.methodName + " \n"; |
|||
} |
|||
|
|||
throw new Error(errMsg); |
|||
} |
|||
</script> |
|||
</head> |
|||
<body> |
|||
<form id="form1" runat="server" style="height:100%"> |
|||
<div id="silverlightControlHost"> |
|||
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%"> |
|||
<param name="source" value="ClientBin/SilverlightUnitTests.xap"/> |
|||
<param name="onError" value="onSilverlightError" /> |
|||
<param name="background" value="white" /> |
|||
<param name="minRuntimeVersion" value="4.0.50401.0" /> |
|||
<param name="autoUpgrade" value="true" /> |
|||
<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50401.0" style="text-decoration:none"> |
|||
<img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/> |
|||
</a> |
|||
</object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div> |
|||
</form> |
|||
</body> |
|||
</html> |
|||
@ -1,73 +0,0 @@ |
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|||
<html xmlns="http://www.w3.org/1999/xhtml" > |
|||
|
|||
<head> |
|||
<title>SilverlightUnitTests</title> |
|||
<style type="text/css"> |
|||
html, body { |
|||
height: 100%; |
|||
overflow: auto; |
|||
} |
|||
body { |
|||
padding: 0; |
|||
margin: 0; |
|||
} |
|||
#silverlightControlHost { |
|||
height: 100%; |
|||
text-align:center; |
|||
} |
|||
</style> |
|||
<script type="text/javascript" src="Silverlight.js"></script> |
|||
<script type="text/javascript"> |
|||
function onSilverlightError(sender, args) { |
|||
var appSource = ""; |
|||
if (sender != null && sender != 0) { |
|||
appSource = sender.getHost().Source; |
|||
} |
|||
|
|||
var errorType = args.ErrorType; |
|||
var iErrorCode = args.ErrorCode; |
|||
|
|||
if (errorType == "ImageError" || errorType == "MediaError") { |
|||
return; |
|||
} |
|||
|
|||
var errMsg = "Unhandled Error in Silverlight Application " + appSource + "\n" ; |
|||
|
|||
errMsg += "Code: "+ iErrorCode + " \n"; |
|||
errMsg += "Category: " + errorType + " \n"; |
|||
errMsg += "Message: " + args.ErrorMessage + " \n"; |
|||
|
|||
if (errorType == "ParserError") { |
|||
errMsg += "File: " + args.xamlFile + " \n"; |
|||
errMsg += "Line: " + args.lineNumber + " \n"; |
|||
errMsg += "Position: " + args.charPosition + " \n"; |
|||
} |
|||
else if (errorType == "RuntimeError") { |
|||
if (args.lineNumber != 0) { |
|||
errMsg += "Line: " + args.lineNumber + " \n"; |
|||
errMsg += "Position: " + args.charPosition + " \n"; |
|||
} |
|||
errMsg += "MethodName: " + args.methodName + " \n"; |
|||
} |
|||
|
|||
throw new Error(errMsg); |
|||
} |
|||
</script> |
|||
</head> |
|||
<body> |
|||
<form id="form1" runat="server" style="height:100%"> |
|||
<div id="silverlightControlHost"> |
|||
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%"> |
|||
<param name="source" value="ClientBin/SilverlightUnitTests.xap"/> |
|||
<param name="onError" value="onSilverlightError" /> |
|||
<param name="background" value="white" /> |
|||
<param name="minRuntimeVersion" value="4.0.50401.0" /> |
|||
<param name="autoUpgrade" value="true" /> |
|||
<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50401.0" style="text-decoration:none"> |
|||
<img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/> |
|||
</a> |
|||
</object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div> |
|||
</form> |
|||
</body> |
|||
</html> |
|||
@ -1,30 +0,0 @@ |
|||
<?xml version="1.0"?> |
|||
|
|||
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 --> |
|||
|
|||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> |
|||
<!-- |
|||
In the example below, the "SetAttributes" transform will change the value of |
|||
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator |
|||
finds an atrribute "name" that has a value of "MyDB". |
|||
|
|||
<connectionStrings> |
|||
<add name="MyDB" |
|||
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True" |
|||
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/> |
|||
</connectionStrings> |
|||
--> |
|||
<system.web> |
|||
<!-- |
|||
In the example below, the "Replace" transform will replace the entire |
|||
<customErrors> section of your web.config file. |
|||
Note that because there is only one customErrors section under the |
|||
<system.web> node, there is no need to use the "xdt:Locator" attribute. |
|||
|
|||
<customErrors defaultRedirect="GenericError.htm" |
|||
mode="RemoteOnly" xdt:Transform="Replace"> |
|||
<error statusCode="500" redirect="InternalError.htm"/> |
|||
</customErrors> |
|||
--> |
|||
</system.web> |
|||
</configuration> |
|||
@ -1,31 +0,0 @@ |
|||
<?xml version="1.0"?> |
|||
|
|||
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 --> |
|||
|
|||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> |
|||
<!-- |
|||
In the example below, the "SetAttributes" transform will change the value of |
|||
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator |
|||
finds an atrribute "name" that has a value of "MyDB". |
|||
|
|||
<connectionStrings> |
|||
<add name="MyDB" |
|||
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True" |
|||
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/> |
|||
</connectionStrings> |
|||
--> |
|||
<system.web> |
|||
<compilation xdt:Transform="RemoveAttributes(debug)" /> |
|||
<!-- |
|||
In the example below, the "Replace" transform will replace the entire |
|||
<customErrors> section of your web.config file. |
|||
Note that because there is only one customErrors section under the |
|||
<system.web> node, there is no need to use the "xdt:Locator" attribute. |
|||
|
|||
<customErrors defaultRedirect="GenericError.htm" |
|||
mode="RemoteOnly" xdt:Transform="Replace"> |
|||
<error statusCode="500" redirect="InternalError.htm"/> |
|||
</customErrors> |
|||
--> |
|||
</system.web> |
|||
</configuration> |
|||
@ -1,13 +0,0 @@ |
|||
<?xml version="1.0"?> |
|||
|
|||
<!-- |
|||
For more information on how to configure your ASP.NET application, please visit |
|||
http://go.microsoft.com/fwlink/?LinkId=169433 |
|||
--> |
|||
|
|||
<configuration> |
|||
<system.web> |
|||
<compilation debug="true" targetFramework="4.0" /> |
|||
</system.web> |
|||
|
|||
</configuration> |
|||
@ -1,26 +0,0 @@ |
|||
|
|||
Microsoft Visual Studio Solution File, Format Version 11.00 |
|||
# Visual Studio 2010 |
|||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SilverlightUnitTests", "SilverlightUnitTests\SilverlightUnitTests.csproj", "{2E7CF5BB-2E02-4654-8964-79675F535727}" |
|||
EndProject |
|||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SilverlightUnitTests.Web", "SilverlightUnitTests.Web\SilverlightUnitTests.Web.csproj", "{955CBD46-9E5E-454D-8BA8-087C3AD36CE8}" |
|||
EndProject |
|||
Global |
|||
GlobalSection(SolutionConfigurationPlatforms) = preSolution |
|||
Debug|Any CPU = Debug|Any CPU |
|||
Release|Any CPU = Release|Any CPU |
|||
EndGlobalSection |
|||
GlobalSection(ProjectConfigurationPlatforms) = postSolution |
|||
{2E7CF5BB-2E02-4654-8964-79675F535727}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
|||
{2E7CF5BB-2E02-4654-8964-79675F535727}.Debug|Any CPU.Build.0 = Debug|Any CPU |
|||
{2E7CF5BB-2E02-4654-8964-79675F535727}.Release|Any CPU.ActiveCfg = Release|Any CPU |
|||
{2E7CF5BB-2E02-4654-8964-79675F535727}.Release|Any CPU.Build.0 = Release|Any CPU |
|||
{955CBD46-9E5E-454D-8BA8-087C3AD36CE8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
|||
{955CBD46-9E5E-454D-8BA8-087C3AD36CE8}.Debug|Any CPU.Build.0 = Debug|Any CPU |
|||
{955CBD46-9E5E-454D-8BA8-087C3AD36CE8}.Release|Any CPU.ActiveCfg = Release|Any CPU |
|||
{955CBD46-9E5E-454D-8BA8-087C3AD36CE8}.Release|Any CPU.Build.0 = Release|Any CPU |
|||
EndGlobalSection |
|||
GlobalSection(SolutionProperties) = preSolution |
|||
HideSolutionNode = FALSE |
|||
EndGlobalSection |
|||
EndGlobal |
|||
@ -1,8 +0,0 @@ |
|||
<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|||
x:Class="SilverlightUnitTests.App" |
|||
> |
|||
<Application.Resources> |
|||
|
|||
</Application.Resources> |
|||
</Application> |
|||
@ -1,58 +0,0 @@ |
|||
using System; |
|||
using System.Windows; |
|||
using Microsoft.Silverlight.Testing; |
|||
|
|||
namespace SilverlightUnitTests |
|||
{ |
|||
public partial class App : Application |
|||
{ |
|||
|
|||
public App() |
|||
{ |
|||
this.Startup += this.Application_Startup; |
|||
this.Exit += this.Application_Exit; |
|||
this.UnhandledException += this.Application_UnhandledException; |
|||
|
|||
InitializeComponent(); |
|||
} |
|||
|
|||
private void Application_Startup(object sender, StartupEventArgs e) |
|||
{ |
|||
RootVisual = UnitTestSystem.CreateTestPage(); |
|||
} |
|||
|
|||
private void Application_Exit(object sender, EventArgs e) |
|||
{ |
|||
|
|||
} |
|||
private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e) |
|||
{ |
|||
// If the app is running outside of the debugger then report the exception using
|
|||
// the browser's exception mechanism. On IE this will display it a yellow alert
|
|||
// icon in the status bar and Firefox will display a script error.
|
|||
if (!System.Diagnostics.Debugger.IsAttached) |
|||
{ |
|||
|
|||
// NOTE: This will allow the application to continue running after an exception has been thrown
|
|||
// but not handled.
|
|||
// For production applications this error handling should be replaced with something that will
|
|||
// report the error to the website and stop the application.
|
|||
e.Handled = true; |
|||
Deployment.Current.Dispatcher.BeginInvoke(delegate { ReportErrorToDOM(e); }); |
|||
} |
|||
} |
|||
private void ReportErrorToDOM(ApplicationUnhandledExceptionEventArgs e) |
|||
{ |
|||
try |
|||
{ |
|||
string errorMsg = e.ExceptionObject.Message + e.ExceptionObject.StackTrace; |
|||
errorMsg = errorMsg.Replace('"', '\'').Replace("\r\n", @"\n"); |
|||
|
|||
System.Windows.Browser.HtmlPage.Window.Eval("throw new Error(\"Unhandled Error in Silverlight Application " + errorMsg + "\");"); |
|||
} |
|||
catch (Exception) |
|||
{ |
|||
} |
|||
} |
|||
} |
|||
} |
|||
@ -1,7 +0,0 @@ |
|||
<Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment" |
|||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|||
> |
|||
<Deployment.Parts> |
|||
</Deployment.Parts> |
|||
|
|||
</Deployment> |
|||
@ -1,37 +0,0 @@ |
|||
// Copyright © Microsoft 2010
|
|||
|
|||
using System.Reflection; |
|||
using System.Runtime.CompilerServices; |
|||
using System.Runtime.InteropServices; |
|||
|
|||
// General Information about an assembly is controlled through the following
|
|||
// set of attributes. Change these attribute values to modify the information
|
|||
// associated with an assembly.
|
|||
[assembly: AssemblyTitle("SilverlightUnitTests")] |
|||
[assembly: AssemblyDescription("")] |
|||
[assembly: AssemblyConfiguration("")] |
|||
[assembly: AssemblyCompany("Microsoft")] |
|||
[assembly: AssemblyProduct("SilverlightUnitTests")] |
|||
[assembly: AssemblyCopyright("Copyright © Microsoft 2010")] |
|||
[assembly: AssemblyTrademark("")] |
|||
[assembly: AssemblyCulture("")] |
|||
|
|||
// Setting ComVisible to false makes the types in this assembly not visible
|
|||
// to COM components. If you need to access a type in this assembly from
|
|||
// COM, set the ComVisible attribute to true on that type.
|
|||
[assembly: ComVisible(false)] |
|||
|
|||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
|||
[assembly: Guid("5ea9dc74-07ae-49b4-a6d8-88b3d83c29c0")] |
|||
|
|||
// Version information for an assembly consists of the following four values:
|
|||
//
|
|||
// Major Version
|
|||
// Minor Version
|
|||
// Build Number
|
|||
// Revision
|
|||
//
|
|||
// You can specify all the values or you can default the Revision and Build Numbers
|
|||
// by using the '*' as shown below:
|
|||
[assembly: AssemblyVersion("1.0.0.0")] |
|||
[assembly: AssemblyFileVersion("1.0.0.0")] |
|||
@ -1,125 +0,0 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
|||
<PropertyGroup> |
|||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
|||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
|||
<ProductVersion>9.0.30729</ProductVersion> |
|||
<SchemaVersion>2.0</SchemaVersion> |
|||
<ProjectGuid>{2E7CF5BB-2E02-4654-8964-79675F535727}</ProjectGuid> |
|||
<ProjectTypeGuids>{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids> |
|||
<OutputType>Library</OutputType> |
|||
<AppDesignerFolder>Properties</AppDesignerFolder> |
|||
<RootNamespace>SilverlightUnitTests</RootNamespace> |
|||
<AssemblyName>SilverlightUnitTests</AssemblyName> |
|||
<TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier> |
|||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> |
|||
<SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion> |
|||
<SilverlightApplication>true</SilverlightApplication> |
|||
<SupportedCultures /> |
|||
<XapOutputs>true</XapOutputs> |
|||
<GenerateSilverlightManifest>true</GenerateSilverlightManifest> |
|||
<XapFilename>SilverlightUnitTests.xap</XapFilename> |
|||
<SilverlightManifestTemplate>Properties\AppManifest.xml</SilverlightManifestTemplate> |
|||
<SilverlightAppEntry>SilverlightUnitTests.App</SilverlightAppEntry> |
|||
<TestPageFileName>TestPage.html</TestPageFileName> |
|||
<CreateTestPage>true</CreateTestPage> |
|||
<ValidateXaml>true</ValidateXaml> |
|||
<EnableOutOfBrowser>false</EnableOutOfBrowser> |
|||
<OutOfBrowserSettingsFile>Properties\OutOfBrowserSettings.xml</OutOfBrowserSettingsFile> |
|||
<UsePlatformExtensions>false</UsePlatformExtensions> |
|||
<ThrowErrorsInValidation>true</ThrowErrorsInValidation> |
|||
<LinkedServerProject /> |
|||
</PropertyGroup> |
|||
<!-- |
|||
// |
|||
// Silverlight Code Coverage Instrumentation |
|||
// List any libraries or assemblies that you would like to instrument during |
|||
// a code coverage pass. An example, for ClassLibrary1, is provided, and |
|||
// commented out below as a starting point: |
|||
// |
|||
--> |
|||
<!-- |
|||
<ItemGroup> |
|||
<InstrumentSilverlightAssemblies Include="SilverlightClassLibrary1"> |
|||
<Visible>false</Visible> |
|||
</InstrumentSilverlightAssemblies> |
|||
</ItemGroup> |
|||
--> |
|||
<!-- This property group is only here to support building this project using the |
|||
MSBuild 3.5 toolset. In order to work correctly with this older toolset, it needs |
|||
to set the TargetFrameworkVersion to v3.5 --> |
|||
<PropertyGroup Condition="'$(MSBuildToolsVersion)' == '3.5'"> |
|||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion> |
|||
</PropertyGroup> |
|||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
|||
<DebugSymbols>true</DebugSymbols> |
|||
<DebugType>full</DebugType> |
|||
<Optimize>false</Optimize> |
|||
<OutputPath>Bin\Debug</OutputPath> |
|||
<DefineConstants>DEBUG;TRACE;SILVERLIGHT</DefineConstants> |
|||
<NoStdLib>true</NoStdLib> |
|||
<NoConfig>true</NoConfig> |
|||
<ErrorReport>prompt</ErrorReport> |
|||
<WarningLevel>4</WarningLevel> |
|||
</PropertyGroup> |
|||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
|||
<DebugType>pdbonly</DebugType> |
|||
<Optimize>true</Optimize> |
|||
<OutputPath>Bin\Release</OutputPath> |
|||
<DefineConstants>TRACE;SILVERLIGHT</DefineConstants> |
|||
<NoStdLib>true</NoStdLib> |
|||
<NoConfig>true</NoConfig> |
|||
<ErrorReport>prompt</ErrorReport> |
|||
<WarningLevel>4</WarningLevel> |
|||
</PropertyGroup> |
|||
<ItemGroup> |
|||
<Reference Include="MathNet.Numerics"> |
|||
<HintPath>..\..\..\out\debug\SL4\MathNet.Numerics.dll</HintPath> |
|||
</Reference> |
|||
<Reference Include="Microsoft.Silverlight.Testing"> |
|||
<HintPath>$(MSBuildExtensionsPath)\..\Microsoft SDKs\Silverlight\v4.0\Toolkit\Apr10\Testing\Microsoft.Silverlight.Testing.dll</HintPath> |
|||
</Reference> |
|||
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight"> |
|||
<HintPath>$(MSBuildExtensionsPath)\..\Microsoft SDKs\Silverlight\v4.0\Toolkit\Apr10\Testing\Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll</HintPath> |
|||
</Reference> |
|||
<Reference Include="System.Numerics, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" /> |
|||
<Reference Include="System.Windows" /> |
|||
<Reference Include="mscorlib" /> |
|||
<Reference Include="system" /> |
|||
<Reference Include="System.Core" /> |
|||
<Reference Include="System.Net" /> |
|||
<Reference Include="System.Xml" /> |
|||
<Reference Include="System.Windows.Browser" /> |
|||
</ItemGroup> |
|||
<ItemGroup> |
|||
<Compile Include="..\..\MSUnitTests\AssertHelpers.cs"> |
|||
<Link>AssertHelpers.cs</Link> |
|||
</Compile> |
|||
<Compile Include="..\..\MSUnitTests\LinearAlgebraProviderTests\Double\LinearAlgebraProviderTests.cs"> |
|||
<Link>LinearAlgebraProviderTests\Double\LinearAlgebraProviderTests.cs</Link> |
|||
</Compile> |
|||
<Compile Include="App.xaml.cs"> |
|||
<DependentUpon>App.xaml</DependentUpon> |
|||
</Compile> |
|||
<Compile Include="Properties\AssemblyInfo.cs" /> |
|||
</ItemGroup> |
|||
<ItemGroup> |
|||
<ApplicationDefinition Include="App.xaml"> |
|||
<SubType>Designer</SubType> |
|||
<Generator>MSBuild:Compile</Generator> |
|||
</ApplicationDefinition> |
|||
</ItemGroup> |
|||
<ItemGroup> |
|||
<None Include="Properties\AppManifest.xml" /> |
|||
</ItemGroup> |
|||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" /> |
|||
<Import Condition="$(SilverlightVersion)=='v3.0'" Project="$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SilverlightToolkit\Tools\v3.0)Microsoft.Silverlight.Toolkit.Build.targets" /> |
|||
<Import Condition="$(SilverlightVersion)=='v4.0'" Project="$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SilverlightToolkit\Tools\v4.0)Microsoft.Silverlight.Toolkit.Build.targets" /> |
|||
<ProjectExtensions> |
|||
<VisualStudio> |
|||
<FlavorProperties GUID="{A1591282-1198-4647-A2B1-27E5FF5F6F3B}"> |
|||
<SilverlightProjectProperties /> |
|||
</FlavorProperties> |
|||
</VisualStudio> |
|||
</ProjectExtensions> |
|||
</Project> |
|||
@ -1,21 +0,0 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<TestSettings name="Trace and Test Impact" id="5b7586ca-82ed-4988-8010-b5c2efbec5e8" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010"> |
|||
<Description>These are test settings for Trace and Test Impact.</Description> |
|||
<Execution> |
|||
<TestTypeSpecific /> |
|||
<AgentRule name="Execution Agents"> |
|||
<DataCollectors> |
|||
<DataCollector uri="datacollector://microsoft/SystemInfo/1.0" assemblyQualifiedName="Microsoft.VisualStudio.TestTools.DataCollection.SystemInfo.SystemInfoDataCollector, Microsoft.VisualStudio.TestTools.DataCollection.SystemInfo, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" friendlyName="System Information"> |
|||
</DataCollector> |
|||
<DataCollector uri="datacollector://microsoft/ActionLog/1.0" assemblyQualifiedName="Microsoft.VisualStudio.TestTools.ManualTest.ActionLog.ActionLogPlugin, Microsoft.VisualStudio.TestTools.ManualTest.ActionLog, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" friendlyName="Actions"> |
|||
</DataCollector> |
|||
<DataCollector uri="datacollector://microsoft/HttpProxy/1.0" assemblyQualifiedName="Microsoft.VisualStudio.TraceCollector.HttpProxyCollector, Microsoft.VisualStudio.TraceCollector, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" friendlyName="ASP.NET Client Proxy for IntelliTrace and Test Impact"> |
|||
</DataCollector> |
|||
<DataCollector uri="datacollector://microsoft/TestImpact/1.0" assemblyQualifiedName="Microsoft.VisualStudio.TraceCollector.TestImpactDataCollector, Microsoft.VisualStudio.TraceCollector, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" friendlyName="Test Impact"> |
|||
</DataCollector> |
|||
<DataCollector uri="datacollector://microsoft/TraceDebugger/1.0" assemblyQualifiedName="Microsoft.VisualStudio.TraceCollector.TraceDebuggerDataCollector, Microsoft.VisualStudio.TraceCollector, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" friendlyName="IntelliTrace"> |
|||
</DataCollector> |
|||
</DataCollectors> |
|||
</AgentRule> |
|||
</Execution> |
|||
</TestSettings> |
|||
Loading…
Reference in new issue