WebRequest request = HttpWebRequest.Create("http://rain.kassir.ru:8080/kassirgate/");
WebRequest request = HttpWebRequest.Create("http://rain.kassir.ru:8080/kassirgate/VenueService/");
Matrix matrix = new Matrix(10, 10);
Random random = new Random();
for(int i = 0; i < 10; i++)
for(int j = 0; j < 10 ; j++)
matrix.set(i, j, random.nextDouble());
EigenvalueDecomposition eig = matrix.eig();
// Собственные вектора
Matrix v = eig.getV();
// Реальная часть собственных значений
double[] realEigenvalues = eig.getRealEigenvalues();
// Мнимая часть собственных значений
double[] imagEigenvalues = eig.getImagEigenvalues();
using (var txtReader = new StreamReader(@"statuses.xml")) {
var xmlAttributeOverrides = new XmlAttributeOverrides();
var xmlAttributes = new XmlAttributes {
XmlRoot = new XmlRootAttribute("issue_statuses")
};
xmlAttributeOverrides.Add(typeof(IssueStatus[]), xmlAttributes);
var attributes = new XmlAttributes {
XmlRoot = new XmlRootAttribute("issue_status"),
XmlType = new XmlTypeAttribute("issue_status")
};
xmlAttributeOverrides.Add(typeof(IssueStatus), attributes);
var xmlSerializer = new XmlSerializer(typeof (IssueStatus[]), xmlAttributeOverrides);
var statuses = (IssueStatus[])xmlSerializer.Deserialize(txtReader);
}
class Class1Wrapper {
public readonly Class1 Wrapped;
public Class1Wrapper(Class1 toWrap) {
Wrapperd = toWrap;
}
public override string ToString() {
return string.Format("X: {0}, Y : {1}", Wrapped.X, Wrapped.Y);
}
public static Class1Wrapper Wrap(Class1 toWrap) {
return new Class1Wrapper(toWrap) ;
}
}
Дальше в тесте
Assert.That(templateSeries.getElements().Select(Class1Wrapper.Wrap).ToArray(),
Is.EqualTo(resultSeries.getElements().Select(Class1Wrapper.Wrap).ToArray())
.Using(new Class1WrapperComparer()));