- establish
- when assertion on set only properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace FreakyFeatureManagement | |
{ | |
using Appccelerate.EvaluationEngine; | |
class Program |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ExecuteOnRepos([string]$reposPath, [string]$command, [string]$arguments) | |
{ | |
$folders = Get-ChildItem $reposPath | ?{ $_.PSIsContainer } | Select-Object FullName | |
foreach($folder in $folders) | |
{ | |
cd $folder.FullName | |
$gitFolder = $folder.FullName + "\.git" | |
if (Test-Path $gitFolder) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. .\ExecuteOnRepos.ps1 | |
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition | |
cd $scriptPath | |
ExecuteOnRepos $scriptPath "git" "pull" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition | |
cd $scriptPath | |
$solutions = Get-ChildItem $scriptPath -Recurse -Filter *.sln | |
foreach($solution in $solutions) | |
{ | |
write-host $solution.FullName | |
$packagesFolder = (Split-Path -parent $solution.FullName) + "\packages" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd C:\Projects\appccelerate\repos | |
Import-Module C:\projects\appccelerate\repos\scripts\Appccelerate.ps1 -DisableNameChecking |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd C:\Projects\appccelerate\ursenzler_repos | |
Import-Module C:\projects\appccelerate\ursenzler_repos\scripts\Appccelerate.ps1 -DisableNameChecking |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace Semaphore | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[<AutoOpen>] | |
module FluentAssertionsExtensionMethods | |
open System | |
open System.Collections | |
open System.Runtime.CompilerServices | |
open FluentAssertions | |
open FluentAssertions.Collections | |
open FluentAssertions.Equivalency | |
open FluentAssertions.Numeric |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open FsToolkit.ErrorHandling | |
open Xunit | |
open Swensen.Unquote | |
let factoryFunction<'a> () : 'a = | |
let value = | |
if typeof<'a> = typeof<string> then "String" :> obj | |
elif typeof<'a> = typeof<int> then 1 :> obj | |
else failwith "Unsupported type" | |
downcast value |