Skip to content
Browse files

Removed Demo and TestRunner for the sake of Mono compatibility.

Demo lives on as GitSharp.Demo at https://github.com/henon/GitSharp.Demo/tree
TestRunner lives on as WPFTestRunner at http://github.com/henon/WPFTestRunner/tree
You may run or debug the test suite via Gallio Icarus GUI-runner (http://www.gallio.org)

Signed-off-by: henon <meinrad.recheis@gmail.com>
  • Loading branch information...
1 parent 64aec0f commit 666d242a129f956cee06f4d9608ea470df295def @henon committed Jul 27, 2009
View
1 Demo.txt
@@ -0,0 +1 @@
+Git# demo browser (Windows only) has been moved to http://github.com/henon/GitSharp.Demo/tree
View
8 Demo/App.xaml
@@ -1,8 +0,0 @@
-<Application x:Class="GitSharp.TestGUI.App"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- StartupUri="Browser.xaml">
- <Application.Resources>
-
- </Application.Resources>
-</Application>
View
16 Demo/App.xaml.cs
@@ -1,16 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Configuration;
-using System.Data;
-using System.Linq;
-using System.Windows;
-
-namespace GitSharp.TestRunner
-{
- /// <summary>
- /// Interaction logic for App.xaml
- /// </summary>
- public partial class App : Application
- {
- }
-}
View
168 Demo/Browser.xaml
@@ -1,168 +0,0 @@
-<Window x:Class="GitSharp.Demo.Browser"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:g="clr-namespace:GitSharp;assembly=GitSharp"
- Title="Repository Browser" MinHeight="423" MinWidth="568">
-
- <Window.Resources>
- <!--repository tree templates-->
- <HierarchicalDataTemplate DataType="{x:Type g:Tree}" ItemsSource="{Binding Path=Members}">
- <TextBlock Text="{Binding Name}" TextTrimming="CharacterEllipsis" ToolTip="{Binding Id}"/>
- </HierarchicalDataTemplate>
- <DataTemplate DataType="{x:Type g:TreeEntry}">
- <TextBlock Text="{Binding Name}" TextTrimming="CharacterEllipsis" Foreground="CornflowerBlue" ToolTip="{Binding Id}"/>
- </DataTemplate>
-
- <!--config tree templates-->
- <!--<HierarchicalDataTemplate DataType="{x:Type config:Section}" ItemsSource="{Binding Path=Entries}">
- <TextBlock Text="{Binding Name}" TextTrimming="CharacterEllipsis"/>
- </HierarchicalDataTemplate>
- <DataTemplate DataType="{x:Type config:Entry}">
- <StackPanel Orientation="Horizontal">
- <Label Content="{Binding Name}" ToolTip="{Binding FullName}" Width="200"/>
- <Label Content=" = "/>
- <TextBox Text="{Binding Path=Value, Mode=TwoWay, UpdateSourceTrigger=LostFocus}" ToolTip="{Binding Value}" Width="300"/>
- </StackPanel>
- </DataTemplate>-->
- </Window.Resources>
- <DockPanel>
- <Menu DockPanel.Dock="Top">
- <MenuItem Header="Repository">
- <MenuItem Header="Open ..." Click="OnSelectRepository"/>
- </MenuItem>
- </Menu>
- <StackPanel DockPanel.Dock="Top" Orientation="Horizontal" Margin="0,0,0,5">
- <Label>Path to repository:</Label>
- <TextBox Name="m_url_textbox">..\..\..\</TextBox>
- <Button Click="OnLoadRepository" Margin="5,0,0,0">Load</Button>
- <!--<Label Margin="10,0,0,0">Select a commit. Differences to the previous commit are highlited in red.</Label>-->
- </StackPanel>
- <TabControl SelectedIndex="0">
-
- <!--commit browser-->
- <TabItem Header="Browser">
- <Grid Margin="0,10,0,0">
- <Grid.RowDefinitions>
- <RowDefinition/>
- <RowDefinition Height="2"/>
- <RowDefinition/>
- </Grid.RowDefinitions>
-
-
- <!--upper half-->
-
-
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="2"/>
- <ColumnDefinition Width="3*"/>
- </Grid.ColumnDefinitions>
-
- <!--tags and branches-->
- <DockPanel Margin="0">
- <TextBlock DockPanel.Dock="Top" Background="Silver" Name="m_refs_title">Branches and Tags</TextBlock>
- <ListView Name="m_refs" DockPanel.Dock="Top">
- <ListView.View>
- <GridView>
- <GridView.Columns>
- <GridViewColumn Header="Name" DisplayMemberBinding="{Binding Path=Name}"/>
- <GridViewColumn Header="SHA" DisplayMemberBinding="{Binding Path=ObjectId}"/>
- <!--<GridViewColumn Header="Pointing to" DisplayMemberBinding="{Binding Path=PeeledObjectId}"/>-->
- <GridViewColumn Header="OriginalName" DisplayMemberBinding="{Binding Path=OriginalName}"/>
- <GridViewColumn Header="Detached" DisplayMemberBinding="{Binding Path=Detached}"/>
- <GridViewColumn Header="Storage" DisplayMemberBinding="{Binding Path=StorageFormat.Name}"/>
- </GridView.Columns>
- </GridView>
- </ListView.View>
- </ListView>
-
- </DockPanel>
-
- <!--commits-->
- <DockPanel Grid.Column="2">
- <TextBlock DockPanel.Dock="Top" Background="Silver" Name="m_commit_title">Commit history for</TextBlock>
- <ListView Name="m_commits" DockPanel.Dock="Top">
- <ListView.View>
- <GridView>
- <GridView.Columns>
- <GridViewColumn Header="SHA" DisplayMemberBinding="{Binding Path=CommitId}" />
- <GridViewColumn Header="Message" DisplayMemberBinding="{Binding Path=Message}"/>
- <GridViewColumn Header="Committer" DisplayMemberBinding="{Binding Path=Committer.Name}"/>
- <GridViewColumn Header="CommitedDate" DisplayMemberBinding="{Binding Path=Committer.When}"/>
- <GridViewColumn Header="Author" DisplayMemberBinding="{Binding Path=Author.Name}"/>
- <GridViewColumn Header="AuthoredDate" DisplayMemberBinding="{Binding Path=Author.When}"/>
- </GridView.Columns>
- </GridView>
- </ListView.View>
- </ListView>
- </DockPanel>
- <GridSplitter Width="2" Grid.Column="1" ResizeBehavior="PreviousAndNext"/>
-
- </Grid>
- <GridSplitter Grid.Row="1" ResizeBehavior="PreviousAndNext" ResizeDirection="Rows" Height="2"/>
-
-
- <!--lower half-->
-
-
- <Grid Grid.Row="2">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="2"/>
- <ColumnDefinition Width="3*"/>
- </Grid.ColumnDefinitions>
- <!--tree-->
- <DockPanel Grid.Column="0">
- <TextBlock DockPanel.Dock="Top" Background="Silver" Name="m_tree_title">Repository</TextBlock>
- <TreeView Name="m_tree"/>
- </DockPanel>
-
- <GridSplitter ResizeBehavior="PreviousAndNext" Width="2" Grid.Column="1"/>
- <!--object-->
- <DockPanel Grid.Column="2">
- <TextBlock DockPanel.Dock="Top" Background="Silver" Name="m_object_title">Object</TextBlock>
- <RichTextBox Name="m_object" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto"/>
- </DockPanel>
-
- </Grid>
- </Grid>
- </TabItem>
-
- <!--config-->
- <TabItem Header="Configuration">
- <DockPanel>
- <StackPanel Orientation="Horizontal" DockPanel.Dock="Top" Margin="4">
- <Button Click="OnLoadConfiguration">Load</Button>
- <Button Click="OnSaveConfiguration">Save</Button>
- </StackPanel>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="2*"/>
- <!--<ColumnDefinition Width="2"/>
- <ColumnDefinition Width="1*"/>-->
- </Grid.ColumnDefinitions>
-
- <!--config tree-->
- <DockPanel Grid.Column="0">
- <TextBlock DockPanel.Dock="Top" Background="Silver">Configuration</TextBlock>
- <TreeView Name="m_config_tree">
-
- </TreeView>
- </DockPanel>
-
- <!--config editor-->
- <!--<DockPanel Grid.Column="2" >
- <TextBlock DockPanel.Dock="Top" Background="Silver">Edit ... </TextBlock>
- <Label Name="m_config_name" DockPanel.Dock="Top" ></Label>
- <TextBox Name="m_config_value" DockPanel.Dock="Top" ></TextBox>
- </DockPanel>
- <GridSplitter Width="2" Grid.Column="1" ResizeBehavior="PreviousAndNext"/>-->
- </Grid>
- </DockPanel>
- </TabItem>
-
- </TabControl>
- </DockPanel>
-
-</Window>
View
184 Demo/Browser.xaml.cs
@@ -1,184 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
-using GitSharp;
-using System.Collections.ObjectModel;
-using Microsoft.Win32;
-using System.Reflection;
-using System.Diagnostics;
-
-namespace GitSharp.Demo
-{
-
- public partial class Browser : Window
- {
- public Browser()
- {
- InitializeComponent();
- m_commits.SelectionChanged += (o, args) => SelectCommit(m_commits.SelectedItem as Commit);
- //m_branches.SelectionChanged += (o, args) => SelectBranch(m_branches.SelectedItem as Branch);
- m_refs.SelectionChanged += (o, args) => SelectRef(m_refs.SelectedItem as Ref);
- m_tree.SelectedItemChanged += (o, args) => SelectObject(m_tree.SelectedValue as TreeEntry);
- //m_config_tree.SelectedItemChanged += (o, args) => SelectConfiguration(m_config_tree.SelectedItem);
- }
-
-
- Repository m_repository;
-
- // load
- private void OnLoadRepository(object sender, RoutedEventArgs e)
- {
- var url = m_url_textbox.Text;
- var repo = Repository.Open(url);
- var head = repo.OpenCommit(repo.Head.ObjectId) as Commit;
- m_repository = repo;
- var tags = repo.Tags.Values.Select(@ref => repo.MapTag(@ref.Name, @ref.ObjectId));
- //var branches = repo.Branches.Values.Select(@ref => repo.MapCommit(@ref.ObjectId));
- m_refs.ItemsSource = repo.Refs.Values;
- DisplayCommit(head, "HEAD");
- ReloadConfiguration();
- }
-
- private void SelectObject(TreeEntry node)
- {
- if (node.IsBlob)
- {
- //var blob = node as Blob;
- var text = Encoding.UTF8.GetString(m_repository.OpenBlob(node.Id).getBytes()); // TODO: better interface for blobs
- m_object.Document.Blocks.Clear();
- var p = new Paragraph();
- p.Inlines.Add(text);
- m_object.Document.Blocks.Add(p);
- m_object_title.Text = "Content of " + node.FullName;
- }
- else
- {
- m_object.Document.Blocks.Clear();
- }
- }
-
- private void SelectBranch(object branch)
- {
- if (branch == null)
- return;
- //DisplayCommit(branch.Commit, "Branch "+branch.Name);
- }
-
- private void SelectRef(Ref r)
- {
- if (r == null)
- return;
- var obj = m_repository.OpenObject(r.ObjectId);
- if (obj.getType() == Constants.OBJ_COMMIT)
- {
- DisplayCommit(m_repository.MapCommit(r.ObjectId), "Commit history of " + r.Name);
- return;
- }
- else if (obj.getType() == Constants.OBJ_TAG)
- {
- var tag = m_repository.MapTag(r.Name, r.ObjectId);
- if (tag.TagId == r.ObjectId) // it sometimes happens to have self referencing tags
- {
- return;
- }
- var tagged_commit = m_repository.MapCommit(tag.TagId);
- DisplayCommit(tagged_commit, "Commit history of " + tag.TagName);
- return;
- }
- else if (obj.getType() == Constants.OBJ_TREE)
- {
- // hmm, display somehow
- }
- else if (obj.getType() == Constants.OBJ_BLOB)
- {
- // hmm, display somehow
- }
- else
- {
- Debug.Fail("don't know how to display this object: "+obj.ToString());
- }
- }
-
- private void SelectTag(Tag tag)
- {
- if (tag == null)
- return;
- //if (tag.Object is Commit)
- // DisplayCommit(tag.Object as Commit, "Tag "+tag.Name);
- }
-
- private void OnSelectRepository(object sender, RoutedEventArgs e)
- {
- var dlg = new System.Windows.Forms.FolderBrowserDialog();
- //dlg.CheckPathExists = true;
- if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
- {
- m_url_textbox.Text = dlg.SelectedPath;
- }
- }
-
- //private void SelectConfiguration(object obj)
- //{
- // if (obj is Entry)
- // {
- // var entry = obj as dotGit.Config.Entry;
- // m_config_name.Content = entry.FullName;
- // if (entry.Value != null)
- // m_config_value.Text = entry.Value;
- // }
- //}
-
- private void DisplayCommit(Commit commit, string info)
- {
- if (commit == null)
- return;
- var list = commit.Ancestors.ToList();
- list.Insert(0, commit);
- m_commits.ItemsSource = list;
- m_commits.SelectedIndex = 0;
- m_commit_title.Text = "Commit history for " + info;
- }
-
- private void SelectCommit(Commit commit)
- {
- if (commit == null)
- return;
- m_tree.ItemsSource = (commit.TreeEntry as Tree).Members;
- m_tree_title.Text = "Repository tree of Commit " + commit.CommitId;
- //(m_tree.ItemContainerGenerator.ContainerFromIndex(0) as TreeViewItem).IsExpanded = true;
- }
-
- private void OnLoadConfiguration(object sender, RoutedEventArgs e)
- {
- ReloadConfiguration();
- }
-
- private void ReloadConfiguration()
- {
- m_repository.Config.Load();
- m_config_tree.ItemsSource = null;
- //m_config_tree.ItemsSource = m_repository.Config.Sections;
- }
-
- private void SaveConfiguration()
- {
- m_repository.Config.Save();
- ReloadConfiguration();
- }
-
- private void OnSaveConfiguration(object sender, RoutedEventArgs e)
- {
- SaveConfiguration();
- }
- }
-}
View
113 Demo/GitSharp.Demo.csproj
@@ -1,113 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.30729</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{4B53BA11-1ADE-44E7-AC0F-7748D5701C25}</ProjectGuid>
- <OutputType>WinExe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>GitSharp.Demo</RootNamespace>
- <AssemblyName>GitSharp.Demo</AssemblyName>
- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="System" />
- <Reference Include="System.Core">
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
- </Reference>
- <Reference Include="System.Windows.Forms" />
- <Reference Include="System.Xml.Linq">
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
- </Reference>
- <Reference Include="System.Data.DataSetExtensions">
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
- </Reference>
- <Reference Include="System.Data" />
- <Reference Include="System.Xml" />
- <Reference Include="WindowsBase" />
- <Reference Include="PresentationCore" />
- <Reference Include="PresentationFramework" />
- </ItemGroup>
- <ItemGroup>
- <ApplicationDefinition Include="App.xaml">
- <Generator>MSBuild:Compile</Generator>
- <SubType>Designer</SubType>
- </ApplicationDefinition>
- <Page Include="Browser.xaml">
- <Generator>MSBuild:Compile</Generator>
- <SubType>Designer</SubType>
- </Page>
- <Compile Include="App.xaml.cs">
- <DependentUpon>App.xaml</DependentUpon>
- <SubType>Code</SubType>
- </Compile>
- <Compile Include="Browser.xaml.cs">
- <DependentUpon>Browser.xaml</DependentUpon>
- <SubType>Code</SubType>
- </Compile>
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Properties\AssemblyInfo.cs">
- <SubType>Code</SubType>
- </Compile>
- <Compile Include="Properties\Resources.Designer.cs">
- <AutoGen>True</AutoGen>
- <DesignTime>True</DesignTime>
- <DependentUpon>Resources.resx</DependentUpon>
- </Compile>
- <Compile Include="Properties\Settings.Designer.cs">
- <AutoGen>True</AutoGen>
- <DependentUpon>Settings.settings</DependentUpon>
- <DesignTimeSharedInput>True</DesignTimeSharedInput>
- </Compile>
- <EmbeddedResource Include="Properties\Resources.resx">
- <Generator>ResXFileCodeGenerator</Generator>
- <LastGenOutput>Resources.Designer.cs</LastGenOutput>
- <SubType>Designer</SubType>
- </EmbeddedResource>
- <None Include="Properties\Settings.settings">
- <Generator>SettingsSingleFileGenerator</Generator>
- <LastGenOutput>Settings.Designer.cs</LastGenOutput>
- </None>
- <AppDesigner Include="Properties\" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\GitSharp\GitSharp.csproj">
- <Project>{C46EDD61-C202-465A-93F1-ADE20A83BB59}</Project>
- <Name>GitSharp</Name>
- </ProjectReference>
- </ItemGroup>
- <ItemGroup>
- <Resource Include="README.txt" />
- </ItemGroup>
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
-</Project>
View
55 Demo/Properties/AssemblyInfo.cs
@@ -1,55 +0,0 @@
-using System.Reflection;
-using System.Resources;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-using System.Windows;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("TestRunner")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("eqqon")]
-[assembly: AssemblyProduct("TestRunner")]
-[assembly: AssemblyCopyright("Copyright © eqqon 2009")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-//In order to begin building localizable applications, set
-//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
-//inside a <PropertyGroup>. For example, if you are using US english
-//in your source files, set the <UICulture> to en-US. Then uncomment
-//the NeutralResourceLanguage attribute below. Update the "en-US" in
-//the line below to match the UICulture setting in the project file.
-
-//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
-
-
-[assembly: ThemeInfo(
- ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
- //(used if a resource is not found in the page,
- // or application resource dictionaries)
- ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
- //(used if a resource is not found in the page,
- // app, or any theme specific resource dictionaries)
-)]
-
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
View
63 Demo/Properties/Resources.Designer.cs
@@ -1,63 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-// Runtime Version:2.0.50727.1433
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-namespace GitSharp.Demo.Properties {
- using System;
-
-
- /// <summary>
- /// A strongly-typed resource class, for looking up localized strings, etc.
- /// </summary>
- // This class was auto-generated by the StronglyTypedResourceBuilder
- // class via a tool like ResGen or Visual Studio.
- // To add or remove a member, edit your .ResX file then rerun ResGen
- // with the /str option, or rebuild your VS project.
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- internal class Resources {
-
- private static global::System.Resources.ResourceManager resourceMan;
-
- private static global::System.Globalization.CultureInfo resourceCulture;
-
- [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
- internal Resources() {
- }
-
- /// <summary>
- /// Returns the cached ResourceManager instance used by this class.
- /// </summary>
- [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Resources.ResourceManager ResourceManager {
- get {
- if (object.ReferenceEquals(resourceMan, null)) {
- global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("GitSharp.Demo.Properties.Resources", typeof(Resources).Assembly);
- resourceMan = temp;
- }
- return resourceMan;
- }
- }
-
- /// <summary>
- /// Overrides the current thread's CurrentUICulture property for all
- /// resource lookups using this strongly typed resource class.
- /// </summary>
- [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Globalization.CultureInfo Culture {
- get {
- return resourceCulture;
- }
- set {
- resourceCulture = value;
- }
- }
- }
-}
View
117 Demo/Properties/Resources.resx
@@ -1,117 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<root>
- <!--
- Microsoft ResX Schema
-
- Version 2.0
-
- The primary goals of this format is to allow a simple XML format
- that is mostly human readable. The generation and parsing of the
- various data types are done through the TypeConverter classes
- associated with the data types.
-
- Example:
-
- ... ado.net/XML headers & schema ...
- <resheader name="resmimetype">text/microsoft-resx</resheader>
- <resheader name="version">2.0</resheader>
- <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
- <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
- <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
- <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
- <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
- <value>[base64 mime encoded serialized .NET Framework object]</value>
- </data>
- <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
- <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
- <comment>This is a comment</comment>
- </data>
-
- There are any number of "resheader" rows that contain simple
- name/value pairs.
-
- Each data row contains a name, and value. The row also contains a
- type or mimetype. Type corresponds to a .NET class that support
- text/value conversion through the TypeConverter architecture.
- Classes that don't support this are serialized and stored with the
- mimetype set.
-
- The mimetype is used for serialized objects, and tells the
- ResXResourceReader how to depersist the object. This is currently not
- extensible. For a given mimetype the value must be set accordingly:
-
- Note - application/x-microsoft.net.object.binary.base64 is the format
- that the ResXResourceWriter will generate, however the reader can
- read any of the formats listed below.
-
- mimetype: application/x-microsoft.net.object.binary.base64
- value : The object must be serialized with
- : System.Serialization.Formatters.Binary.BinaryFormatter
- : and then encoded with base64 encoding.
-
- mimetype: application/x-microsoft.net.object.soap.base64
- value : The object must be serialized with
- : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
- : and then encoded with base64 encoding.
-
- mimetype: application/x-microsoft.net.object.bytearray.base64
- value : The object must be serialized into a byte array
- : using a System.ComponentModel.TypeConverter
- : and then encoded with base64 encoding.
- -->
- <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
- <xsd:element name="root" msdata:IsDataSet="true">
- <xsd:complexType>
- <xsd:choice maxOccurs="unbounded">
- <xsd:element name="metadata">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" />
- <xsd:attribute name="type" type="xsd:string" />
- <xsd:attribute name="mimetype" type="xsd:string" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="assembly">
- <xsd:complexType>
- <xsd:attribute name="alias" type="xsd:string" />
- <xsd:attribute name="name" type="xsd:string" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="data">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
- <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
- <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
- <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="resheader">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" use="required" />
- </xsd:complexType>
- </xsd:element>
- </xsd:choice>
- </xsd:complexType>
- </xsd:element>
- </xsd:schema>
- <resheader name="resmimetype">
- <value>text/microsoft-resx</value>
- </resheader>
- <resheader name="version">
- <value>2.0</value>
- </resheader>
- <resheader name="reader">
- <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
- </resheader>
- <resheader name="writer">
- <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
- </resheader>
-</root>
View
26 Demo/Properties/Settings.Designer.cs
@@ -1,26 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-// Runtime Version:2.0.50727.1433
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-namespace GitSharp.Demo.Properties {
-
-
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")]
- internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
-
- private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
-
- public static Settings Default {
- get {
- return defaultInstance;
- }
- }
- }
-}
View
7 Demo/Properties/Settings.settings
@@ -1,7 +0,0 @@
-<?xml version='1.0' encoding='utf-8'?>
-<SettingsFile xmlns="uri:settings" CurrentProfile="(Default)">
- <Profiles>
- <Profile Name="(Default)" />
- </Profiles>
- <Settings />
-</SettingsFile>
View
3 Demo/README.txt
@@ -1,3 +0,0 @@
-Gitsharp.Demo demonstrates the functionality of Git# by implementing a simple repository browser.
-
-NOTE: To run the demo set the project GitSharp.Demo as the startup project.
View
BIN Demo/screenshot01.png
Deleted file not rendered
View
7 GitSharp.sln
@@ -1,20 +1,13 @@

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitSharp.Demo", "Demo\GitSharp.Demo.csproj", "{4B53BA11-1ADE-44E7-AC0F-7748D5701C25}"
- ProjectSection(ProjectDependencies) = postProject
- {C46EDD61-C202-465A-93F1-ADE20A83BB59} = {C46EDD61-C202-465A-93F1-ADE20A83BB59}
- EndProjectSection
-EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitSharp.Tests", "Tests\GitSharp.Tests.csproj", "{37052DA4-F6A9-47D0-94AA-96F4A7E0462C}"
ProjectSection(ProjectDependencies) = postProject
{C46EDD61-C202-465A-93F1-ADE20A83BB59} = {C46EDD61-C202-465A-93F1-ADE20A83BB59}
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitSharp", "GitSharp\GitSharp.csproj", "{C46EDD61-C202-465A-93F1-ADE20A83BB59}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitSharp.TestRunner", "TestRunner\GitSharp.TestRunner.csproj", "{6E76C9D7-F95E-4978-8DD2-07471792E7AA}"
-EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{A2CD2048-48D8-4641-ACBF-5199613EE281}"
ProjectSection(SolutionItems) = preProject
LICENSE.txt = LICENSE.txt
View
8 TestRunner/App.xaml
@@ -1,8 +0,0 @@
-<Application x:Class="GitSharp.TestRunner.App"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- StartupUri="MainWindow.xaml">
- <Application.Resources>
-
- </Application.Resources>
-</Application>
View
16 TestRunner/App.xaml.cs
@@ -1,16 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Configuration;
-using System.Data;
-using System.Linq;
-using System.Windows;
-
-namespace GitSharp.TestRunner
-{
- /// <summary>
- /// Interaction logic for App.xaml
- /// </summary>
- public partial class App : Application
- {
- }
-}
View
125 TestRunner/GitSharp.TestRunner.csproj
@@ -1,125 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.30729</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{6E76C9D7-F95E-4978-8DD2-07471792E7AA}</ProjectGuid>
- <OutputType>WinExe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>GitSharp.TestRunner</RootNamespace>
- <AssemblyName>GitSharp.TestRunner</AssemblyName>
- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="nunit.framework, Version=2.5.0.9122, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\extern\nunit.framework.dll</HintPath>
- </Reference>
- <Reference Include="System" />
- <Reference Include="System.Core">
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
- </Reference>
- <Reference Include="System.Xml.Linq">
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
- </Reference>
- <Reference Include="System.Data.DataSetExtensions">
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
- </Reference>
- <Reference Include="System.Data" />
- <Reference Include="System.Xml" />
- <Reference Include="WindowsBase" />
- <Reference Include="PresentationCore" />
- <Reference Include="PresentationFramework" />
- </ItemGroup>
- <ItemGroup>
- <ApplicationDefinition Include="App.xaml">
- <Generator>MSBuild:Compile</Generator>
- <SubType>Designer</SubType>
- </ApplicationDefinition>
- <Page Include="MainWindow.xaml">
- <Generator>MSBuild:Compile</Generator>
- <SubType>Designer</SubType>
- </Page>
- <Page Include="TestRunner.xaml">
- <Generator>MSBuild:Compile</Generator>
- <SubType>Designer</SubType>
- </Page>
- <Compile Include="App.xaml.cs">
- <DependentUpon>App.xaml</DependentUpon>
- <SubType>Code</SubType>
- </Compile>
- <Compile Include="MainWindow.xaml.cs">
- <DependentUpon>MainWindow.xaml</DependentUpon>
- <SubType>Code</SubType>
- </Compile>
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Properties\AssemblyInfo.cs">
- <SubType>Code</SubType>
- </Compile>
- <Compile Include="Properties\Resources.Designer.cs">
- <AutoGen>True</AutoGen>
- <DesignTime>True</DesignTime>
- <DependentUpon>Resources.resx</DependentUpon>
- </Compile>
- <Compile Include="Properties\Settings.Designer.cs">
- <AutoGen>True</AutoGen>
- <DependentUpon>Settings.settings</DependentUpon>
- <DesignTimeSharedInput>True</DesignTimeSharedInput>
- </Compile>
- <Compile Include="TestcaseView.cs" />
- <Compile Include="TestFixtureView.cs" />
- <Compile Include="TestRunner.xaml.cs">
- <DependentUpon>TestRunner.xaml</DependentUpon>
- </Compile>
- <EmbeddedResource Include="Properties\Resources.resx">
- <Generator>ResXFileCodeGenerator</Generator>
- <LastGenOutput>Resources.Designer.cs</LastGenOutput>
- <SubType>Designer</SubType>
- </EmbeddedResource>
- <None Include="Properties\Settings.settings">
- <Generator>SettingsSingleFileGenerator</Generator>
- <LastGenOutput>Settings.Designer.cs</LastGenOutput>
- </None>
- <AppDesigner Include="Properties\" />
- </ItemGroup>
- <ItemGroup>
- <Resource Include="README.txt" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\Tests\GitSharp.Tests.csproj">
- <Project>{37052DA4-F6A9-47D0-94AA-96F4A7E0462C}</Project>
- <Name>GitSharp.Tests</Name>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
-</Project>
View
8 TestRunner/MainWindow.xaml
@@ -1,8 +0,0 @@
-<Window x:Class="GitSharp.TestRunner.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- Title="Git# Test Runner" Height="600" Width="800">
- <DockPanel Name="m_unit_tests">
-
- </DockPanel>
-</Window>
View
34 TestRunner/MainWindow.xaml.cs
@@ -1,34 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
-using System.Reflection;
-
-namespace GitSharp.TestRunner
-{
- public partial class MainWindow : Window
- {
- public MainWindow()
- {
- InitializeComponent();
- InitTestRunner();
- }
-
-
- private void InitTestRunner()
- {
- var testrunner = new TestRunner();
- m_unit_tests.Children.Add( testrunner);
- testrunner.AddAssembly(Assembly.Load("GitSharp.Tests"));
- }
- }
-}
View
55 TestRunner/Properties/AssemblyInfo.cs
@@ -1,55 +0,0 @@
-using System.Reflection;
-using System.Resources;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-using System.Windows;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("GitSharp.TestRunner")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("eqqon")]
-[assembly: AssemblyProduct("GitSharp.TestRunner")]
-[assembly: AssemblyCopyright("Copyright © eqqon 2009")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-//In order to begin building localizable applications, set
-//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
-//inside a <PropertyGroup>. For example, if you are using US english
-//in your source files, set the <UICulture> to en-US. Then uncomment
-//the NeutralResourceLanguage attribute below. Update the "en-US" in
-//the line below to match the UICulture setting in the project file.
-
-//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
-
-
-[assembly: ThemeInfo(
- ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
- //(used if a resource is not found in the page,
- // or application resource dictionaries)
- ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
- //(used if a resource is not found in the page,
- // app, or any theme specific resource dictionaries)
-)]
-
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
View
71 TestRunner/Properties/Resources.Designer.cs
@@ -1,71 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-// Runtime Version:2.0.50727.1433
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-namespace GitSharp.TestRunner.Properties
-{
-
-
- /// <summary>
- /// A strongly-typed resource class, for looking up localized strings, etc.
- /// </summary>
- // This class was auto-generated by the StronglyTypedResourceBuilder
- // class via a tool like ResGen or Visual Studio.
- // To add or remove a member, edit your .ResX file then rerun ResGen
- // with the /str option, or rebuild your VS project.
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- internal class Resources
- {
-
- private static global::System.Resources.ResourceManager resourceMan;
-
- private static global::System.Globalization.CultureInfo resourceCulture;
-
- [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
- internal Resources()
- {
- }
-
- /// <summary>
- /// Returns the cached ResourceManager instance used by this class.
- /// </summary>
- [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Resources.ResourceManager ResourceManager
- {
- get
- {
- if ((resourceMan == null))
- {
- global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("GitSharp.TestRunner.Properties.Resources", typeof(Resources).Assembly);
- resourceMan = temp;
- }
- return resourceMan;
- }
- }
-
- /// <summary>
- /// Overrides the current thread's CurrentUICulture property for all
- /// resource lookups using this strongly typed resource class.
- /// </summary>
- [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Globalization.CultureInfo Culture
- {
- get
- {
- return resourceCulture;
- }
- set
- {
- resourceCulture = value;
- }
- }
- }
-}
View
117 TestRunner/Properties/Resources.resx
@@ -1,117 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<root>
- <!--
- Microsoft ResX Schema
-
- Version 2.0
-
- The primary goals of this format is to allow a simple XML format
- that is mostly human readable. The generation and parsing of the
- various data types are done through the TypeConverter classes
- associated with the data types.
-
- Example:
-
- ... ado.net/XML headers & schema ...
- <resheader name="resmimetype">text/microsoft-resx</resheader>
- <resheader name="version">2.0</resheader>
- <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
- <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
- <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
- <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
- <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
- <value>[base64 mime encoded serialized .NET Framework object]</value>
- </data>
- <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
- <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
- <comment>This is a comment</comment>
- </data>
-
- There are any number of "resheader" rows that contain simple
- name/value pairs.
-
- Each data row contains a name, and value. The row also contains a
- type or mimetype. Type corresponds to a .NET class that support
- text/value conversion through the TypeConverter architecture.
- Classes that don't support this are serialized and stored with the
- mimetype set.
-
- The mimetype is used for serialized objects, and tells the
- ResXResourceReader how to depersist the object. This is currently not
- extensible. For a given mimetype the value must be set accordingly:
-
- Note - application/x-microsoft.net.object.binary.base64 is the format
- that the ResXResourceWriter will generate, however the reader can
- read any of the formats listed below.
-
- mimetype: application/x-microsoft.net.object.binary.base64
- value : The object must be serialized with
- : System.Serialization.Formatters.Binary.BinaryFormatter
- : and then encoded with base64 encoding.
-
- mimetype: application/x-microsoft.net.object.soap.base64
- value : The object must be serialized with
- : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
- : and then encoded with base64 encoding.
-
- mimetype: application/x-microsoft.net.object.bytearray.base64
- value : The object must be serialized into a byte array
- : using a System.ComponentModel.TypeConverter
- : and then encoded with base64 encoding.
- -->
- <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
- <xsd:element name="root" msdata:IsDataSet="true">
- <xsd:complexType>
- <xsd:choice maxOccurs="unbounded">
- <xsd:element name="metadata">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" />
- <xsd:attribute name="type" type="xsd:string" />
- <xsd:attribute name="mimetype" type="xsd:string" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="assembly">
- <xsd:complexType>
- <xsd:attribute name="alias" type="xsd:string" />
- <xsd:attribute name="name" type="xsd:string" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="data">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
- <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
- <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
- <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="resheader">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" use="required" />
- </xsd:complexType>
- </xsd:element>
- </xsd:choice>
- </xsd:complexType>
- </xsd:element>
- </xsd:schema>
- <resheader name="resmimetype">
- <value>text/microsoft-resx</value>
- </resheader>
- <resheader name="version">
- <value>2.0</value>
- </resheader>
- <resheader name="reader">
- <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
- </resheader>
- <resheader name="writer">
- <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
- </resheader>
-</root>
View
30 TestRunner/Properties/Settings.Designer.cs
@@ -1,30 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-// Runtime Version:2.0.50727.1433
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-namespace GitSharp.TestRunner.Properties
-{
-
-
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")]
- internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
- {
-
- private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
-
- public static Settings Default
- {
- get
- {
- return defaultInstance;
- }
- }
- }
-}
View
7 TestRunner/Properties/Settings.settings
@@ -1,7 +0,0 @@
-<?xml version='1.0' encoding='utf-8'?>
-<SettingsFile xmlns="uri:settings" CurrentProfile="(Default)">
- <Profiles>
- <Profile Name="(Default)" />
- </Profiles>
- <Settings />
-</SettingsFile>
View
7 TestRunner/README.txt
@@ -1,7 +0,0 @@
-Testrunner allows contributors to easily execute the unit tests from within Visual Studio and is
-comfortable for debugging broken tests. For instance, exception backtraces are formatted such
-that Visual Studio can jump to the location in source on double click on a backtrace line in the
-output window. To print the exception backtrace of a specific failed test to the output window
-click on it in tree view.
-
-NOTE: To run the tests set the project GitSharp.TestRunner as the startup project and run it.
View
82 TestRunner/TestFixtureView.cs
@@ -1,82 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Reflection;
-using System.Diagnostics;
-
-namespace GitSharp.TestRunner
-{
- internal class TestFixtureView
- {
- public TestFixtureView(string name, Type fixture)
- {
- Name = name;
- FixtureType = fixture;
- Tests = new List<TestcaseView>();
- }
-
- public string Name { get; set; }
- public Type FixtureType { get; set; }
- public MethodInfo SetupMethod { get; set; }
- public MethodInfo TeardownMethod { get; set; }
- public List<TestcaseView> Tests { get; private set; }
-
- internal void AddTest(TestcaseView testcase)
- {
- testcase.Fixture = this;
- Tests.Add(testcase);
- }
-
- private object m_instance;
- public object Instance
- {
- get
- {
- if (m_instance == null)
- {
- m_instance = CreateInstance(FixtureType, new object[0]);
- }
- return m_instance;
- }
- }
-
- public bool AreAllExecuted
- {
- get
- {
- return !Tests.Any(t => !t.IsExecuted);
- }
- }
-
- public bool HasAnyFailures
- {
- get
- {
- return Tests.Any(t => t.Failed);
- }
- }
-
- public static object CreateInstance(Type type, params object[] args)
- {
- Debug.Assert(type != null, "type cannot be null!!!!");
- try
- {
- return type.InvokeMember(
- null,
- BindingFlags.Public |
- BindingFlags.NonPublic |
- BindingFlags.CreateInstance |
- BindingFlags.Instance,
- null,
- null,
- args);
- }
- catch (TargetInvocationException e)
- {
- Console.WriteLine(e.PrettyPrint());
- throw e;
- }
- }
- }
-}
View
37 TestRunner/TestRunner.xaml
@@ -1,37 +0,0 @@
-<UserControl x:Class="GitSharp.TestRunner.TestRunner"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- MinHeight="300" MinWidth="500">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="3*" />
- <ColumnDefinition Width="7*" />
- </Grid.ColumnDefinitions>
- <TreeView Name="m_treeview" Grid.Column="0" Margin="0,0,5,0">
- <TreeViewItem Header="All assemblies" IsExpanded="True"></TreeViewItem>
- </TreeView>
- <GridSplitter Width="5" BorderThickness="1" BorderBrush="DarkGray" />
-
- <Grid Grid.Column="1">
- <Grid.RowDefinitions>
- <RowDefinition Height="3*"></RowDefinition>
- <RowDefinition Height="5"></RowDefinition>
- <RowDefinition Height="*"></RowDefinition>
- </Grid.RowDefinitions>
- <DockPanel Grid.Row="0">
- <DockPanel DockPanel.Dock="Top">
- <Button Name="m_button_run" Width="50" Margin="5,2">Start</Button>
- <Button Width="50" Margin="5,2" Click="OnStopButton">Stop</Button>
- <ProgressBar Name="m_progressbar"></ProgressBar>
- </DockPanel>
- <TextBlock DockPanel.Dock="Top" Background="Silver" Text="Summary:" Name="m_summary_label"/>
- <TextBox Name="m_textbox1" DockPanel.Dock="Bottom">Status</TextBox>
- </DockPanel>
- <GridSplitter Grid.Row="1" BorderThickness="1" BorderBrush="DarkGray" HorizontalAlignment="Stretch" ResizeDirection="Rows" ShowsPreview="False" ResizeBehavior="PreviousAndNext"/>
- <DockPanel Grid.Row="2">
- <TextBlock DockPanel.Dock="Top" Background="Silver">Exception backtrace:</TextBlock>
- <TextBox Name="m_textbox2" ToolTip="NOTE: doublie click on a backtrace line in the output window of Visual Studio to jump to the according line in source code." >Backtrace</TextBox>
- </DockPanel>
- </Grid>
- </Grid>
-</UserControl>
View
493 TestRunner/TestRunner.xaml.cs
@@ -1,493 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
-using System.Reflection;
-using NUnit.Framework;
-using System.IO;
-using System.Threading;
-using System.Windows.Threading;
-
-namespace GitSharp.TestRunner
-{
- public partial class TestRunner : UserControl
- {
- #region --> Initialization
-
-
- public TestRunner()
- {
- InitializeComponent();
- m_button_run.Click += (o, args) =>
- {
- var item = m_treeview.SelectedItem as TreeViewItem;
- if (item == null)
- item = m_treeview.Items[0] as TreeViewItem;
- m_button_run.IsEnabled = false;
- StartBackgroundRunner(item);
- //PresentSummary(item);
- };
- Init();
- }
- //ImageSource red_icon = new BitmapImage().FromFile(Directory.GetCurrentDirectory() + @"./Resources/offline.png");
- //ImageSource green_icon = new BitmapImage().FromFile(Directory.GetCurrentDirectory() + @"./Resources/online.png");
-
- private void Init()
- {
- var item = m_treeview.Items[0] as TreeViewItem;
- {
-
- item.PreviewMouseDown += (o, args) => PresentSummary(item);
- item.ContextMenu = InitContextMenu(item);
- }
-
- List<Assembly> assemblies = new List<Assembly>();
- assemblies.Add(Assembly.GetEntryAssembly());
- foreach (AssemblyName name in Assembly.GetEntryAssembly().GetReferencedAssemblies())
- assemblies.Add(Assembly.Load(name));
- foreach (Assembly assembly in assemblies)
- Analyze(assembly, item.Items);
- UpdateTree();
- }
-
-
- #endregion
-
- /// <summary>
- /// Add assemblies containing unit tests to be run by the testrunner.
- /// </summary>
- /// <param name="assembly"></param>
- public void AddAssembly(Assembly assembly)
- {
- Analyze(assembly, (m_treeview.Items[0] as TreeViewItem).Items);
- UpdateTree();
- }
-
- #region --> Assembly analyzation
-
-
- private void Analyze(Assembly assembly, ItemCollection collection)
- {
- var item = new TreeViewItem();
- {
- item.Header = assembly.GetName().Name;
- item.Tag = assembly;
- collection.Add(item);
- item.PreviewMouseDown += (o, args) => PresentSummary(item);
- }
- foreach (Type type in assembly.GetExportedTypes())
- Analyze(type, item.Items);
-
- if (item.Items.Count == 0)
- {
- collection.Remove(item); // pruning assemblies without testcases
- return;
- }
- item.ContextMenu = InitContextMenu(item);
- }
-
- private void Analyze(Type type, ItemCollection collection)
- {
- object[] attrs = Attribute.GetCustomAttributes(type);
- //if ( attrs.Contains(NUnit.Framework.TestAttribute);
- if (type.GetCustomAttributes(typeof(TestFixtureAttribute), false).Count() == 0)
- return;
- var fixture = new TestFixtureView(type.Name, type);
- var item = new TreeViewItem();
- {
- item.Header = type.Name;
- item.Tag = fixture;
- collection.Add(item);
- item.PreviewMouseDown += (o, args) => PresentSummary(item);
- }
-
- foreach (MethodInfo method in type.GetMethods(BindingFlags.Public | BindingFlags.Instance))
- Analyze(type, method, item.Items, fixture);
-
- }
-
- private void Analyze(Type type, MethodInfo method, ItemCollection collection, TestFixtureView fixture)
- {
- if (method.GetCustomAttributes(typeof(TestAttribute), false).Count() > 0)
- {
-
- var testcase = new TestcaseView(type, method);
- collection.Add(CreateItem(testcase));
- fixture.AddTest(testcase);
- }
- else if (method.GetCustomAttributes(typeof(SetUpAttribute), false).Count() > 0)
- {
- fixture.SetupMethod = method;
- }
- else if (method.GetCustomAttributes(typeof(TearDownAttribute), false).Count() > 0)
- {
- fixture.TeardownMethod = method;
- }
- }
-
- private TreeViewItem CreateItem(TestcaseView testcase)
- {
-
- var item = new TreeViewItem();
- item.Header = testcase.TestMethod.Name;
- //item.FontWeight = FontWeights.Bold;
- item.Tag = testcase;
- item.ContextMenu = InitContextMenu(item);
- item.PreviewMouseDown += (o, args) => PresentSummary(item);
-#if false
- ImageSource iconSource=red_icon;
- TextBlock textBlock;
- Image icon;
-
- StackPanel stack = new StackPanel();
- stack.Orientation = Orientation.Horizontal;
- item.Header = stack;
- //Uncomment this code If you want to add an Image after the Node-HeaderText
- //textBlock = new TextBlock();
- //textBlock.VerticalAlignment = VerticalAlignment.Center;
- //stack.Children.Add(textBlock);
- icon = new Image();
- icon.VerticalAlignment = VerticalAlignment.Center;
- icon.Margin = new Thickness(0, 0, 4, 0);
- icon.Source = iconSource;
- stack.Children.Add(icon);
- //Add the HeaderText After Adding the icon
- textBlock = new TextBlock();
- textBlock.VerticalAlignment = VerticalAlignment.Center;
- stack.Children.Add(textBlock);
-#endif
- return item;
- }
-
- private ContextMenu InitContextMenu(TreeViewItem item)
- {
- var menu = new ContextMenu();
- var item1 = new MenuItem();
- {
- menu.Items.Add(item1);
- item1.Header = "Run";
- item1.Click += (o, args) =>
- {
- StartBackgroundRunner(item);
- PresentSummary(item);
- };
- }
- var item2 = new MenuItem();
- {
- menu.Items.Add(item2);
- item2.Header = "Expand all";
- item2.Click += (o, args) => item.ExpandDownRecursive();
- } return menu;
- }
-
-
- #endregion
-
- #region --> Run mechanics
-
-
- private bool m_stop_background_runner = false;
-
- private void StartBackgroundRunner(TreeViewItem item)
- {
- m_stop_background_runner = false;
- var cases = new List<TestcaseView>();
- UpdateTree();
- CollectAll(item, cases);
- ThreadPool.QueueUserWorkItem(new WaitCallback(x =>
- {
- RunAll(cases, item);
- this.Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(() => m_button_run.IsEnabled = true));
- }));
- }
-
- private void CollectAll(TreeViewItem item, List<TestcaseView> testcases)
- {
- if (item == null || testcases == null)
- return;
- if (item.Tag is TestcaseView)
- {
- var testcase = item.Tag as TestcaseView;
- testcase.Reset();
- testcases.Add(testcase);
- }
- else
- foreach (var child in item.Items)
- CollectAll(child as TreeViewItem, testcases);
- }
-
- private void RunAll(List<TestcaseView> testcases, TreeViewItem toplevel_item)
- {
- foreach (var testcase in testcases)
- {
- if (m_stop_background_runner)
- return;
- if (testcase == null)
- continue;
- Run(testcase);
- PresentSummary(toplevel_item);
- }
- }
-
- private void Run(TestcaseView testcase)
- {
- if (m_stop_background_runner)
- return;
- //item.Foreground = Brushes.Black; // Colors.Black;
- //m_textbox1.Text = "Running ... " + testcase.ToString();
- //m_textbox2.Text = "";
- testcase.Run();
- }
-
-
- #endregion
-
- #region --> Presentation of results
-
-
- int m_failed_count, m_ok_count, m_not_run_count;
-
- private void PresentSummary(TreeViewItem item)
- {
- this.Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(() =>
- {
- m_textbox2.Text = "";
- var testcase = item.Tag as TestcaseView;
- if (testcase == null) // present summary
- {
- ClearStats();
- m_summary_label.Text = "Summary for " + item.Header.ToString();
- StringBuilder s = new StringBuilder("\n");
- var stat_pos = s.Length;
- foreach (var i in item.IterateDown())
- {
- var treeitem = i as TreeViewItem;
- if (treeitem.Tag is TestcaseView)
- {
- s.AppendLine(StatusMessage(treeitem.Tag as TestcaseView));
- UpdateStats(treeitem.Tag as TestcaseView);
- }
- UpdateItem(treeitem);
- }
- var total = (m_ok_count + m_failed_count + m_not_run_count);
- s.Insert(stat_pos, " " + m_failed_count + " failed | " + m_ok_count + " passed | " + m_not_run_count + " not run | " + total + " total tests\n\n");
- m_textbox1.Text = s.ToString();
- m_progressbar.Maximum = (double)total;
- m_progressbar.Value = (double)(m_failed_count + m_ok_count);
- return;
- }
- m_textbox1.Text = StatusMessage(testcase);
- string backtrace = testcase.Exception.PrettyPrint();
- m_textbox2.Text = backtrace;
- UpdateItem(item);
- m_progressbar.Value = 0;
- Console.WriteLine(backtrace);
- }));
- }
-
- private void UpdateItem(TreeViewItem item)
- {
- bool is_executed = false, is_failed = false;
- if (item.Tag is TestcaseView)
- {
- var testcase = item.Tag as TestcaseView;
- is_executed = testcase.IsExecuted;
- is_failed = testcase.Failed;
- }
- else if (item.Tag is TestFixtureView)
- {
- var fixture = item.Tag as TestFixtureView;
- is_executed = fixture.AreAllExecuted;
- is_failed = fixture.HasAnyFailures;
- }
- if (is_failed)
- {
- item.ExpandUpRecursive();
- item.BringIntoView();
- //((item.Header as StackPanel).Children[0] as Image).Source = red_icon;
- //(item.Header as TextBlock).
- item.Foreground = Brushes.Red;
- //m_textbox2.Text = testcase.Exception.PrettyPrint();
- //m_textbox1.Text = testcase.ToString() + " --> FAILED:\n\n" + testcase.Exception.Message;
- //string s = testcase.Exception.PrettyPrint();
- }
- else if (is_executed)
- {
- item.Foreground = Brushes.Black;
- }
- else
- item.Foreground = Brushes.DarkGray;
-
- }
-
- private void UpdateTree()
- {
- foreach (var i in (m_treeview.Items[0] as TreeViewItem).IterateDown())
- {
- var treeitem = i as TreeViewItem;
- if (treeitem.Tag is TestcaseView)
- (treeitem.Tag as TestcaseView).Reset();
- }
- foreach (var i in (m_treeview.Items[0] as TreeViewItem).IterateDown())
- {
- var treeitem = i as TreeViewItem;
- UpdateItem(treeitem);
- }
- }
-
- private void UpdateStats(TestcaseView testcaseView)
- {
- if (testcaseView.IsExecuted)
- if (testcaseView.Failed)
- m_failed_count += 1;
- else
- m_ok_count += 1;
- else
- m_not_run_count += 1;
- }
-
- private void ClearStats()
- {
- m_ok_count = 0;
- m_failed_count = 0;
- m_not_run_count = 0;
- }
-
- private string StatusMessage(TestcaseView testcase)
- {
- if (testcase.IsExecuted == false)
- return testcase.ToString() + " ... not yet run.";
- if (testcase.Failed)
- return "*** " + testcase.ToString() + " --> FAILED:\n\n" + testcase.Exception.Message;
- else
- return testcase.ToString() + " --> OK";
- }
-
-
- #endregion
-
- #region --> Event handling
-
-
- private void OnStopButton(object sender, RoutedEventArgs e)
- {
- m_stop_background_runner = true;
- m_button_run.IsEnabled = true;
- }
-
-
- #endregion
- }
-
- #region Utilities
-
-
- public static class ExceptionExtension
- {
- public static string PrettyPrint(this Exception exception)
- {
- if (exception == null)
- return "";
- m_string_builder = new StringBuilder();
- PrintRecursive(exception, "");
- return m_string_builder.ToString();
- }
-
- private static StringBuilder m_string_builder;
-
- private static void PrintRecursive(Exception exception, string indent)
- {
- string stars = new string('*', 80);
- m_string_builder.AppendLine(indent + stars);
- m_string_builder.AppendFormat(indent + "{0}: \"{1}\"\n", exception.GetType().Name, exception.Message);
- m_string_builder.AppendLine(indent + new string('-', 80));
- if (exception.InnerException != null)
- {
- m_string_builder.AppendLine(indent + "InnerException:");
- PrintRecursive(exception.InnerException, indent + " ");
- }
- foreach (string line in exception.StackTrace.Split(new string[] { " at " }, StringSplitOptions.RemoveEmptyEntries))
- {
- if (string.IsNullOrEmpty(line.Trim())) continue;
- string[] parts;
- parts = line.Trim().Split(new string[] { " in " }, StringSplitOptions.RemoveEmptyEntries);
- string class_info = parts[0];
- if (parts.Length == 2)
- {
- parts = parts[1].Trim().Split(new string[] { "line" }, StringSplitOptions.RemoveEmptyEntries);
- if (parts.Length == 2)
- {
- string src_file = parts[0];
- int line_nr = int.Parse(parts[1]);
- m_string_builder.AppendFormat(indent + " {0}({1},1): {2}\n", src_file.TrimEnd(':'), line_nr, class_info);
- }
- else
- m_string_builder.AppendLine(indent + " " + class_info);
- }
- else
- m_string_builder.AppendLine(indent + " " + class_info);
- }
- m_string_builder.AppendLine(indent + stars);
- }
-
- }
-
- public static class TreeViewItemExtension
- {
- public static void Expand(this TreeViewItem item)
- {
- item.IsExpanded = true;
- }
-
- public static void Collapse(this TreeViewItem item)
- {
- item.IsExpanded = false;
- }
-
- public static void ExpandUpRecursive(this TreeViewItem item)
- {
- var parent = item.Parent as TreeViewItem;
- if (parent == null)
- return;
- parent.Expand();
- parent.ExpandUpRecursive();
- }
-
- public static void ExpandDownRecursive(this TreeViewItem item)
- {
- item.Expand();
- foreach (var child in item.Items)
- (child as TreeViewItem).ExpandDownRecursive();
- }
-
- public static IEnumerable<object> IterateDown(this TreeViewItem item)
- {
- var list = new List<object>();
- IterateDown(item, list);
- return list;
- }
-
- private static void IterateDown(TreeViewItem item, List<object> list)
- {
- foreach (var child in item.Items)
- {
- //var child = i as TreeViewItem;
- list.Add(child);
- if (child is TreeViewItem)
- IterateDown(child as TreeViewItem, list);
- }
- }
- }
-
-
- #endregion
-}
View
99 TestRunner/TestcaseView.cs
@@ -1,99 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Reflection;
-using System.Diagnostics;
-
-namespace GitSharp.TestRunner
-{
- internal class TestcaseView
- {
- public TestcaseView(Type t, MethodInfo m)
- {
- Type = t;
- TestMethod = m;
- Reset();
- }
-
- public Type Type
- {
- get;
- set;
- }
-
- public MethodInfo TestMethod
- {
- get;
- set;
- }
-
-
- public TestFixtureView Fixture { get; set; }
-
- public void Setup()
- {
- if (Fixture.SetupMethod == null)
- return;
- Fixture.SetupMethod.Invoke(Fixture.Instance, new object[0]);
- }
-
- public void Teardown()
- {
- if (Fixture.TeardownMethod == null)
- return;
- try
- {
- Fixture.TeardownMethod.Invoke(Fixture.Instance, new object[0]);
- }
- catch (Exception e)
- {
- Console.WriteLine(e.InnerException.PrettyPrint());
- //Exception = e.InnerException;
- }
- }
-
- public Exception Exception
- {
- get;
- private set;
- }
-
- public bool Failed
- {
- get { return Exception != null; }
- }
-
- public bool IsExecuted { get; private set; }
-
- public void Run()
- {
- IsExecuted = true;
- Exception = null;
- try
- {
- Setup();
- TestMethod.Invoke(Fixture.Instance, new object[0]);
- }
- catch (Exception e)
- {
- Exception = e.InnerException;
- }
- finally
- {
- Teardown();
- }
- }
-
- public override string ToString()
- {
- return Type.Name + "." + TestMethod.Name;
- }
-
- internal void Reset()
- {
- Exception = null;
- IsExecuted = false;
- }
- }
-}

0 comments on commit 666d242

Please sign in to comment.
Something went wrong with that request. Please try again.