Merge lp://staging/~manishsinha/zeitgeist-sharp/testsuite into lp://staging/~zeitgeist-sharp/zeitgeist-sharp/trunk
Proposed by
Manish Sinha (मनीष सिन्हा)
Status: | Rejected |
---|---|
Rejected by: | Manish Sinha (मनीष सिन्हा) |
Proposed branch: | lp://staging/~manishsinha/zeitgeist-sharp/testsuite |
Merge into: | lp://staging/~zeitgeist-sharp/zeitgeist-sharp/trunk |
Diff against target: |
1632 lines (+1078/-75) 19 files modified
Zeitgeist.Testsuite/Datamodel/TestInterpretation.cs (+449/-0) Zeitgeist.Testsuite/Datamodel/TestManifestation.cs (+156/-0) Zeitgeist.Testsuite/Log/TestDeleteEvents.cs (+50/-0) Zeitgeist.Testsuite/Log/TestFindEventIds.cs (+36/-0) Zeitgeist.Testsuite/Log/TestFindEvents.cs (+43/-0) Zeitgeist.Testsuite/Log/TestGetEvents.cs (+54/-0) Zeitgeist.Testsuite/Log/TestInsertEvents.cs (+38/-0) Zeitgeist.Testsuite/Zeitgeist.Testsuite.csproj (+67/-0) Zeitgeist.sln (+6/-0) Zeitgeist/Client/ILog.cs (+6/-6) Zeitgeist/Datamodel/Event.cs (+16/-11) Zeitgeist/Datamodel/Interpretation.cs (+46/-30) Zeitgeist/Datamodel/Manifestation.cs (+7/-7) Zeitgeist/Datamodel/NameUri.cs (+2/-0) Zeitgeist/Datamodel/Subject.cs (+12/-1) Zeitgeist/Datamodel/TimeRange.cs (+50/-11) Zeitgeist/LogClient.cs (+29/-6) Zeitgeist/Zeitgeist.csproj (+0/-1) Zeitgeist/ZsUtils.cs (+11/-2) |
To merge this branch: | bzr merge lp://staging/~manishsinha/zeitgeist-sharp/testsuite |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Manish Sinha (मनीष सिन्हा) | Disapprove | ||
Mirco Bauer | source | Needs Fixing | |
Seif Lotfy | Pending | ||
Review via email: mp+37400@code.staging.launchpad.net |
Commit message
Added lots of Unit Tests
Description of the change
Added lots of Unit Tests
To post a comment you must log in.
Cosmetic issues:
Empty Test.cs file
Serious issues: Datamodel/ Event.cs
in Zeitgeist/
1057 - private string[] _metadata;
1058 - private string[][] _subjects;
1059 - private byte[] _payload;
1060 + public string[] _metadata;
1061 + public string[][] _subjects;
1062 + public byte[] _payload;
Those fields would not be exposed in this way! Re-check if you need to expose those fields, if so add properties for them. Are they only needed for test-cases? That needs special handling then (internal accessor).
in Zeitgeist/ Datamodel/ TimeRange. cs
1492 + public Int64 _begin;
1493 +
1494 + public Int64 _end;
Fields should never be public, as there are public properties I guess this is a typo.
Unsure: Datamodel/ Subject. cs:
in Zeitgeist/
1385 + public Subject()
1386 + {
1387 + Uri = string.Empty;
1388 + Origin = string.Empty;
1389 + MimeType = string.Empty;
1390 + Text = string.Empty;
1391 + Storage = string.Empty;
1392 + Interpretation = new NameUri();
1393 + Manifestation = new NameUri();
1394 + }
Is the D-Bus API / Zeitgeist expecting empty strings in the case of "unset" / unspecified values? Because this is bad coding style to simply pre-init all fields for no good reason.