Skip to content

Commit

Permalink
v2.1.2 Bugfix: #19
Browse files Browse the repository at this point in the history
  • Loading branch information
mfidemraizer committed Nov 22, 2016
1 parent 1d1f9b6 commit bdec00f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
4 changes: 2 additions & 2 deletions TrackerDog.NuGet.Signed/TrackerDog.NuGet.Signed.nuproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
<Import Project="$(NuProjPath)\NuProj.props" Condition="Exists('$(NuProjPath)\NuProj.props')" />
<PropertyGroup Label="Configuration">
<Id>TrackerDog.Signed</Id>
<Version>2.1.1</Version>
<Version>2.1.2</Version>
<Title>TrackerDog: A generic .NET object change tracker (SIGNED)</Title>
<Authors>Matías Fidemraizer</Authors>
<Owners>Matías Fidemraizer</Owners>
<Summary>Track changes of any .NET object and full object graphs</Summary>
<Description>TrackerDog turns any .NET object or full object graph into a change-trackable object</Description>
<ReleaseNotes>See release notes here: https://github.com/mfidemraizer/trackerdog/releases/tag/v2.1.1</ReleaseNotes>
<ReleaseNotes>See release notes here: https://github.com/mfidemraizer/trackerdog/releases/tag/v2.1.2</ReleaseNotes>
<ProjectUrl>http://matiasfidemrazer.com/trackerdog/</ProjectUrl>
<LicenseUrl>https://github.com/mfidemraizer/trackerdog/blob/master/LICENSE</LicenseUrl>
<Copyright>Copyright © Matías Fidemraizer</Copyright>
Expand Down
4 changes: 2 additions & 2 deletions TrackerDog.NuGet/TrackerDog.NuGet.nuproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
<Import Project="$(NuProjPath)\NuProj.props" Condition="Exists('$(NuProjPath)\NuProj.props')" />
<PropertyGroup Label="Configuration">
<Id>TrackerDog</Id>
<Version>2.1.1</Version>
<Version>2.1.2</Version>
<Title>TrackerDog: A generic .NET object change tracker</Title>
<Authors>Matías Fidemraizer</Authors>
<Owners>Matías Fidemraizer</Owners>
<Summary>Track changes of any .NET object and full object graphs</Summary>
<Description>TrackerDog turns any .NET object or full object graph into a change-trackable object</Description>
<ReleaseNotes>See release notes here: https://github.com/mfidemraizer/trackerdog/releases/tag/v2.1.1</ReleaseNotes>
<ReleaseNotes>See release notes here: https://github.com/mfidemraizer/trackerdog/releases/tag/v2.1.2</ReleaseNotes>
<ProjectUrl>http://matiasfidemrazer.com/trackerdog/</ProjectUrl>
<LicenseUrl>https://github.com/mfidemraizer/trackerdog/blob/master/LICENSE</LicenseUrl>
<Copyright>Copyright © Matías Fidemraizer</Copyright>
Expand Down
9 changes: 8 additions & 1 deletion TrackerDog.Test/InterfaceTrackingTest.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TrackerDog.Configuration;

namespace TrackerDog.Test
{
[TestClass]
public sealed class InterfaceTrackingTest
{
public enum WhateverEnum { Some, Other }

public interface IWhatever
{
string Text { get; set; }
A A { get; set; }
WhateverEnum Enum { get; set; }
}

public class A
Expand All @@ -21,6 +25,8 @@ public class WhateverImpl : IWhatever
{
public virtual A A { get; set; }

public virtual WhateverEnum Enum { get; set; }

public virtual string Text { get; set; }
}

Expand All @@ -44,6 +50,7 @@ public void CanTrackInterfaceImplementations()
whatever.A = new A();

whatever = TrackableObjectFactory.CreateFrom(whatever);
whatever.Enum = WhateverEnum.Other;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public IObjectChangeTrackingConfiguration TrackThisTypeRecursive(Type rootType,

trackableTypes = new List<TrackableType>
(
rootType.GetAllPropertyTypesRecursive(p => searchSettings.Filter(p.PropertyType)).Select
rootType.GetAllPropertyTypesRecursive(p => p.PropertyType.IsClass && searchSettings.Filter(p.PropertyType)).Select
(
t =>
{
Expand Down

0 comments on commit bdec00f

Please sign in to comment.