Skip to content

Instantly share code, notes, and snippets.

@garfbradaz
garfbradaz / testResults.xml
Created May 15, 2017 19:27
System.Net.NameResolution.Functional.Tests - Error
<?xml version="1.0" encoding="utf-8"?>
<assemblies>
<assembly name="System.Net.NameResolution.Functional.Tests.dll" environment="64-bit .NET (unknown version) [collection-per-class, parallel (4 threads)]" test-framework="xUnit.net 2.2.0.3300" run-date="2017-05-15" run-time="07:38:16" total="53" passed="44" failed="9" skipped="0" time="17.563" errors="0">
<errors />
<collection total="1" passed="1" failed="0" skipped="0" name="Test collection for System.Net.NameResolution.Tests.LoggingTest" time="0.028">
<test name="System.Net.NameResolution.Tests.LoggingTest.EventSource_ExistsWithCorrectId" type="System.Net.NameResolution.Tests.LoggingTest" method="EventSource_ExistsWithCorrectId" time="0.0282916" result="Pass">
<traits>
<trait name="category" value="nonnetfxtests" />
</traits>
</test>
@garfbradaz
garfbradaz / testResults.xml
Created May 15, 2017 19:30
System.Net.Security.Tests - Errors on Test
<?xml version="1.0" encoding="utf-8"?>
<assemblies>
<assembly name="System.Net.Security.Tests.dll" environment="64-bit .NET (unknown version) [collection-per-class, parallel (4 threads)]" test-framework="xUnit.net 2.2.0.3300" run-date="2017-05-15" run-time="07:40:23" total="138" passed="130" failed="3" skipped="5" time="5.276" errors="0">
<errors />
<collection total="3" passed="3" failed="0" skipped="0" name="Test collection for System.Net.Security.Tests.ServerRequireEncryptionTest" time="1.151">
<test name="System.Net.Security.Tests.ServerRequireEncryptionTest.ServerRequireEncryption_ClientNoEncryption_NoConnect" type="System.Net.Security.Tests.ServerRequireEncryptionTest" method="ServerRequireEncryption_ClientNoEncryption_NoConnect" time="0.5059233" result="Pass">
<traits>
<trait name="category" value="nonuapaottests" />
</traits>
</test>
@garfbradaz
garfbradaz / testResults.xml
Created May 15, 2017 19:34
System.Net.Http.Functional.Tests - Error in Tests
<?xml version="1.0" encoding="utf-8"?>
<assemblies>
<assembly name="System.Net.Http.Functional.Tests.dll" environment="64-bit .NET (unknown version) [collection-per-class, parallel (4 threads)]" test-framework="xUnit.net 2.2.0.3300" run-date="2017-05-15" run-time="07:40:50" total="311" passed="299" failed="1" skipped="11" time="3.061" errors="0">
<errors />
<collection total="9" passed="9" failed="0" skipped="0" name="Test collection for System.Net.Http.Functional.Tests.HttpClientHandler_SslProtocols_Test" time="0.005">
<test name="System.Net.Http.Functional.Tests.HttpClientHandler_SslProtocols_Test.SetGetProtocols_Roundtrips(protocols: None)" type="System.Net.Http.Functional.Tests.HttpClientHandler_SslProtocols_Test" method="SetGetProtocols_Roundtrips" time="0.0045897" result="Pass">
<traits>
<trait name="category" value="nonnetfxtests" />
</traits>
</test>
@garfbradaz
garfbradaz / testResults.xml
Created May 15, 2017 19:38
System.Security.Principal.Windows.Tests - Error in Tests
<?xml version="1.0" encoding="utf-8"?>
<assemblies>
<assembly name="System.Security.Principal.Windows.Tests.dll" environment="64-bit .NET (unknown version) [collection-per-class, parallel (4 threads)]" test-framework="xUnit.net 2.2.0.3300" run-date="2017-05-15" run-time="07:44:02" total="10" passed="7" failed="2" skipped="1" time="0.577" errors="0">
<errors />
<collection total="1" passed="0" failed="1" skipped="0" name="Test collection for WindowsPrincipalTests" time="0.066">
<test name="WindowsPrincipalTests.WindowsPrincipalIsInRoleNeg" type="WindowsPrincipalTests" method="WindowsPrincipalIsInRoleNeg" time="0.0664984" result="Fail">
<failure exception-type="System.ComponentModel.Win32Exception">
<message><![CDATA[System.ComponentModel.Win32Exception : The trust relationship between this workstation and the primary domain failed]]></message>
<stack-trace><![CDATA[ at System.Security.Principal.NTAccount.TranslateToSids(IdentityReferenceCollection sourceAccounts, B
@garfbradaz
garfbradaz / MarkDownCommentNewUserTour.md
Created July 22, 2017 08:17
Comment to new users StackOverFlow users who need a gentle nudge - WHO HAVENT DONE TOUR - Asking A quESTION

Hello and welcome to Stack Overflow, please take a time to go through the welcome tour to know your way around here (and also to earn your first badge), read how to create a [mcve] example and also check [ask] so you increase your chances to get feedback and useful answers.

@garfbradaz
garfbradaz / MarkDownCommentNewUserDoneTour.md
Created July 22, 2017 08:20
Comment to new users StackOverFlow users who need a gentle nudge - WHO HAVE DONE TOUR - Asking A question.

Hello, please take a time to go through the welcome tour to know your way around here , read how to create a [mcve] example and also check [ask] so you increase your chances to get feedback and useful answers.

@garfbradaz
garfbradaz / tfs_app_transformation.ps1
Created November 5, 2017 09:16
Simple Script to update app.config keys during the Team Services (TFS) Build.
New-Item -ItemType directory -Path $(Build.SourcesDirectory)\EmailTests
$xml = [xml](Get-Content app.config)
$xml.configuration.'system.net'.mailSettings.smtp.specifiedPickupDirectory | foreach { $_.pickupDirectoryLocation = "$(Build.SourcesDirectory)\EmailTests\" }
$xml.Save((Resolve-Path "app.config"))
Write-Host $(Build.SourcesDirectory)
at System.Runtime.Serialization.FormatterServices.InternalGetSerializableMembers(RuntimeType type)\r\n at System.Runtime.Serialization.FormatterServices.<>c__DisplayClass9_0.<GetSerializableMembers>b__0(MemberHolder _)\r\n at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)\r\n at System.Runtime.Serialization.FormatterServices.GetSerializableMembers(Type type, StreamingContext context)\r\n at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitMemberInfo()\r\n at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter, SerializationBinder binder)\r\n at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Write(WriteObjectInfo objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo)\r\n at System.Runtime.Serialization.Formatters.Binary.O
@garfbradaz
garfbradaz / encrypt.bat
Last active April 12, 2018 19:49
Encrypt config file using RSA and export keys
GOTO EndComment
This batch file will encrypt a app.config file using aspnet_regiis. You can use other windows directories to run
the application depending on which version you have installed.
The batch file assumed you have app.config file incuded in the direcorty you are running the batch file AND has been amended to
include the appropriate provided.
See this article on details on how to setup the config etc and what each command does
https://mywebanecdotes.com/2016/09/17/encrypting-credentials-in-app-config-for-multiple-machines/