Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patched commits from VSTS #1

Merged
merged 5 commits into from
Aug 4, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions TestPlatform.sln
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "datacollector", "src\dataco
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "datacollector.x86", "src\datacollector.x86\datacollector.x86.xproj", "{00DFB5C7-3850-4A65-986B-713F200482D4}"
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "datacollector.x86.UnitTests", "test\datacollector.x86.UnitTests\datacollector.x86.UnitTests.xproj", "{00AA21F3-31E4-4748-AC0B-C4EADB41CA24}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -205,6 +207,10 @@ Global
{00DFB5C7-3850-4A65-986B-713F200482D4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{00DFB5C7-3850-4A65-986B-713F200482D4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{00DFB5C7-3850-4A65-986B-713F200482D4}.Release|Any CPU.Build.0 = Release|Any CPU
{00AA21F3-31E4-4748-AC0B-C4EADB41CA24}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{00AA21F3-31E4-4748-AC0B-C4EADB41CA24}.Debug|Any CPU.Build.0 = Debug|Any CPU
{00AA21F3-31E4-4748-AC0B-C4EADB41CA24}.Release|Any CPU.ActiveCfg = Release|Any CPU
{00AA21F3-31E4-4748-AC0B-C4EADB41CA24}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -241,5 +247,6 @@ Global
{0CC51428-B665-47B0-A093-042D31785928} = {707096D0-DCFB-44A2-979D-178740E5DADE}
{3572E78C-5AA5-4F68-876D-FC5322677263} = {D8EF073C-279A-4279-912D-E9D4B0635E17}
{00DFB5C7-3850-4A65-986B-713F200482D4} = {D8EF073C-279A-4279-912D-E9D4B0635E17}
{00AA21F3-31E4-4748-AC0B-C4EADB41CA24} = {463031A2-7F16-4E38-9944-1F5161D04933}
EndGlobalSection
EndGlobal
2 changes: 1 addition & 1 deletion dogfood/UnitTestProject/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"dependencies": {
"Microsoft.NETCore.App": {
"type": "platform",
"version": "1.0.0-rc2-3002702"
"version": "1.0.0"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.TestPlatform.Client/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"portable-net45+win8"
],
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24008"
"NETStandard.Library": "1.6.0"
}
},
"net46": { }
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.TestPlatform.Common/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"portable-net45+win8"
],
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24008",
"NETStandard.Library": "1.6.0",
"System.Runtime.Loader": "4.0.0-rc2-24027"
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"portable-net45+win8"
],
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24008",
"NETStandard.Library": "1.6.0",
"System.Runtime.Serialization.Primitives": "4.0.10-*"
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.TestPlatform.CoreUtilities/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"portable-net45+win8"
],
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24008"
"NETStandard.Library": "1.6.0"
}
},
"net46": {
Expand Down
4 changes: 2 additions & 2 deletions src/Microsoft.TestPlatform.CrossPlatEngine/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
"portable-net45+win8"
],
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24008",
"NETStandard.Library": "1.6.0",
"System.Diagnostics.Process": "4.1.0-rc2-23704",
"System.Threading": "4.0.11-rc2-24027"
"System.Threading": "4.0.11"
}
},
"net46": {}
Expand Down
6 changes: 3 additions & 3 deletions src/Microsoft.TestPlatform.Extensions.TrxLogger/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
"portable-net45+win8"
],
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24008",
"System.Collections.NonGeneric": "4.0.1-rc2-24027",
"NETStandard.Library": "1.6.0",
"System.Collections.NonGeneric": "4.0.1",
"System.Security.Principal.Windows": "4.0.0-rc2-24027",
"System.Collections.Specialized": "4.0.1-rc2-24027"
"System.Collections.Specialized": "4.0.1"
}
},
"net46": { }
Expand Down
24 changes: 24 additions & 0 deletions src/Microsoft.TestPlatform.ObjectModel/CustomGuidConverter.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Copyright (c) Microsoft. All rights reserved.

namespace Microsoft.VisualStudio.TestPlatform.ObjectModel
{
using System;
using System.ComponentModel;
using System.Globalization;

/// <summary>
/// Custom Guid converter class
/// </summary>
internal class CustomGuidConverter : GuidConverter
{
///<inheritdoc/>
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
if(destinationType == typeof(Guid))
{
return new Guid(value.ToString());
}
return base.ConvertTo(context, culture, value, destinationType);
}
}
}
19 changes: 10 additions & 9 deletions src/Microsoft.TestPlatform.ObjectModel/TestObject.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft. All rights reserved.
// Copyright (c) Microsoft. All rights reserved.

namespace Microsoft.VisualStudio.TestPlatform.ObjectModel
{
Expand Down Expand Up @@ -76,7 +76,8 @@ protected TestObject()
public TestObject()
#endif
{
this.store = new Dictionary<TestProperty, object>();
this.store = new Dictionary<TestProperty, object>();
TypeDescriptor.AddAttributes(typeof(Guid), new TypeConverterAttribute(typeof(CustomGuidConverter)));
}

[OnSerializing]
Expand All @@ -101,9 +102,9 @@ public void CacheLazyValuesOnSerializing(StreamingContext context)
}
}

#endregion Constructors
#endregion Constructors

#region Properties
#region Properties

/// <summary>
/// Returns the TestProperties currently specified in this TestObject.
Expand Down Expand Up @@ -233,9 +234,9 @@ public void SetPropertyValue<T>(TestProperty property, LazyPropertyValue<T> valu
PrivateSetPropertyValue(property, objValue);
}

#endregion Property Values
#endregion Property Values

#region Helpers
#region Helpers
/// <summary>
/// Return TestProperty's value
/// </summary>
Expand Down Expand Up @@ -355,7 +356,7 @@ private static T ConvertPropertyTo<T>(TestProperty property, CultureInfo culture
}
}

#endregion Helpers
#endregion Helpers

private TraitCollection traits;

Expand All @@ -371,5 +372,5 @@ public TraitCollection Traits
return this.traits;
}
}
}
}
}
}
12 changes: 6 additions & 6 deletions src/Microsoft.TestPlatform.ObjectModel/project.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": "15.0.0-*",
"buildOptions": {
"outputName": "Microsoft.VisualStudio.TestPlatform.ObjectModel",
//"outputName": "Microsoft.VisualStudio.TestPlatform.ObjectModel",
"delaySign": true,
"keyFile": "../../scripts/key.snk",
"warningsAsErrors": true
Expand All @@ -26,14 +26,14 @@
"portable-net45+win8"
],
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24008",
"NETStandard.Library": "1.6.0",
"System.Runtime.Serialization.Primitives": "4.0.10",
"System.Runtime.Extensions": "4.1.0-rc3-23808",
"System.Runtime.Extensions": "4.1.0",
"System.Xml.XPath.XmlDocument": "4.0.1-rc2-24027",
"System.ComponentModel.EventBasedAsync": "4.0.11-rc2-24018",
"System.Runtime.InteropServices": "4.1.0-rc2-24027",
"System.IO.FileSystem": "4.0.1-rc3-23808",
"System.ComponentModel.TypeConverter": "4.0.1-rc2-23911"
"System.Runtime.InteropServices": "4.1.0",
"System.IO.FileSystem": "4.0.1",
"System.ComponentModel.TypeConverter": "4.1.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.TestPlatform.Utilities/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"portable-net45+wp80+win8+wpa81+dnxcore50"
],
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24008"
"NETStandard.Library": "1.6.0"
}
},
"net46": { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@
"portable-net45+win8"
],
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24008",
"NETStandard.Library": "1.6.0",
"System.Runtime.Serialization.Primitives": "4.0.10",
"System.Runtime.Extensions": "4.1.0-rc3-23808",
"System.Runtime.Extensions": "4.1.0",
"System.Xml.XPath.XmlDocument": "4.0.1-rc2-24027",
"System.ComponentModel.EventBasedAsync": "4.0.11-rc2-24018",
"System.Runtime.InteropServices": "4.1.0-rc2-24027",
"System.IO.FileSystem": "4.0.1-rc3-23808",
"System.ComponentModel.TypeConverter": "4.0.1-rc2-23911",
"System.Runtime.InteropServices": "4.1.0",
"System.IO.FileSystem": "4.0.1",
"System.ComponentModel.TypeConverter": "4.1.0",
"System.Diagnostics.Process": "4.1.0-rc2-23704",
"Microsoft.TestPlatform.CommunicationUtilities": "15.0.0-*",
"Microsoft.TestPlatform.ObjectModel": "15.0.0-*",
"Microsoft.TestPlatform.ObjectModel": "15.0.0-*"
}
},
"net46": {
Expand All @@ -33,7 +33,7 @@
},
"dependencies": {
"Microsoft.TestPlatform.CommunicationUtilities": "15.0.0-*",
"Microsoft.TestPlatform.ObjectModel": "15.0.0-*",
"Microsoft.TestPlatform.ObjectModel": "15.0.0-*"
}
}
}
Expand Down
Loading