This file contains hidden or 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
| <?xml version="1.0" encoding="utf-8"?> | |
| <assembly name="FakeItEasy"> | |
| <member name="M:FakeItEasy.A.CallTo(System.Linq.Expressions.Expression{System.Action})"> | |
| <parameter name="callSpecification"> | |
| <attribute ctor="M:JetBrains.Annotations.InstantHandleAttribute.#ctor" /> | |
| </parameter> | |
| </member> | |
| <member name="M:FakeItEasy.A.CallTo``1(System.Linq.Expressions.Expression{System.Func{``0}})"> | |
| <parameter name="callSpecification"> | |
| <attribute ctor="M:JetBrains.Annotations.InstantHandleAttribute.#ctor" /> |
This file contains hidden or 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
| public static readonly string[] MyPaths = GetAllPaths("path1", "path2"); | |
| static readonly string[] AllExtensions = new[] { ".htm", ".html", ".sshtml" }; | |
| private static string[] GetAllPaths(params string[] viewLocations) | |
| { | |
| // this will throw a NRE since AllExtensions is null! | |
| return viewLocations.SelectMany(view => AllExtensions.Select(extension => view + extension)).ToArray(); | |
| } |
This file contains hidden or 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
| class MyBusinessObject | |
| { | |
| public int? MyNullable; | |
| public bool HasSomeBusinessProperty | |
| { | |
| get { return myNullable.HasValue; } | |
| } | |
| } |
This file contains hidden or 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
| AcountProvider provider = AccountProvider.CreateProvider(); | |
| AcountProvider outProvider; | |
| A.CallTo(() => mockAppointment.GetAccountCollection().GetProviderImpl(out outProvider)) // GetProviderImpl is a generic method | |
| .Returns(true) | |
| .AssignsOutAndRefParameters(provider); | |
| bool result = mockAppointment.GetAccountCollection().GetProviderImp(out outProvider); // this returns false and provider is null??? |
This file contains hidden or 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
| <entry> | |
| <record>10589</record> | |
| <time>2014/03/09 11:56:50.360</time> | |
| <type>Error</type> | |
| <source>Editor or Editor Extension</source> | |
| <description>System.InvalidOperationException: Attempting to get the view from an adapter in state Closed | |
| at Microsoft.VisualStudio.Editor.Implementation.SimpleTextViewWindow.get_WpfTextViewHost() | |
| at Microsoft.VisualStudio.Editor.Implementation.SimpleTextViewWindow.ClearCommandContext() | |
| at Microsoft.VisualStudio.Editor.Implementation.VsMouseProcessor.PostprocessMouseLeftButtonUp(MouseButtonEventArgs e) | |
| at Microsoft.VisualStudio.Text.Utilities.WpfMouseProcessor.<>c__DisplayClass30.<UIElement_MouseLeftButtonUp>b__29() |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
| TearDown : JetBrains.Util.Tests.TestLoggerListener+TestWrapperException : 124 exceptions were thrown. | |
| #001: Component CatalogType: JetBrains.ProjectModel.SolutionActivityTrackingComponent [Singleton, Corrupted] construction has failed. Exception has been thrown by the target of an invocation. Sequence contains more than one element | |
| --- EXCEPTION #1/4 [InvalidOperationException] | |
| Message = “Sequence contains more than one element” | |
| ExceptionPath = Root.InnerException.InnerException.InnerException | |
| ClassName = System.InvalidOperationException | |
| Data.DescriptorType = “JetBrains.Application.Extensibility.PartComponentDescriptor, JetBrains.Platform.ReSharper.ComponentModel, Version=8.2.0.2151, Culture=neutral, PublicKeyToken=1010a0d8d6380325” | |
| Data.State = Null | |
| HResult = COR_E_INVALIDOPERATION=80131509 |
This file contains hidden or 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
| private const string program = @" | |
| /* 1 */ class Person | |
| /* 2 */ { | |
| /* 3 */ public int _age = 22; | |
| /* 4 */ public int Age { get { return _age; } set { _age = value; } } | |
| public override string ToString() { return ""hi""; } | |
| /* 5 */ } | |
| /* 6 */ | |
| /* 7 */ class Program | |
| /* 8 */ { |
This file contains hidden or 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
| #development | |
| cinst notepad2 | |
| cinst git.install | |
| cinst poshgit | |
| cinst jump-location | |
| cinst beyondcompare | |
| cinst devbox-rapidee | |
| cinst envycoder | |
| cinst nuget.commandline | |
| cinst scriptcs |
This file contains hidden or 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 Export-SvnDiff($repo, $fromRevision, $toRevision, $outputDirectory) | |
| { | |
| $xpath = "/diff/paths/path[@kind='file' and (@item='added' or @item='modified')]" | |
| [xml]$output = & svn diff -r $("{0}:{1}" -f $fromRevision, $toRevision) $repo --summarize --xml | |
| $output | Select-Xml -XPath $xpath | % { $_.node."#text" } | % { | |
| $targetFile = Resolve-FullPath (Join-Path $outputDirectory ($_ -replace $repo)) | |
| $targetDir = $targetFile | Split-Path | |
| New-Item -Force -ItemType directory -Path $targetDir | Out-Null | |
| & svn export -r $toRevision -q --force $_ $targetFile |
This file contains hidden or 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
| # File -> Open your Config | |
| # add the following inside 'invisibles': | |
| "*": | |
| editor: | |
| invisibles: | |
| eol: '' | |
| cr: '' | |
| ... | |