← Back to all work
GitHubLearning and foundations

Mood Analyser in C#

C# string-rule exercises using custom exceptions, reflection, factories, and tests.

STATUSHistorical learning project; current execution not revalidated in this review.
FOCUSLearning and foundations
DIAGRAM SCOPEWorkflow overview

THE PROBLEM

What it sets out
to solve.

Explore object construction and error handling around a small deterministic rule.

THE APPROACH

How it comes
together.

Mood classes apply string rules; a factory/reflection layer constructs objects and the test project demonstrates expected behavior and exceptional inputs.

UNDER THE HOOD

Follow the workflow.

Trace the components.
Select a node for its role in the system.

Documented implementation workflow4 COMPONENTS
INTERACTIVE 3DMood Analyser in C#
C#.NETReflection
Move to tilt · Drag to rotate · Arrow keysDrag to rotate · Tap a component4 components · 3 connections
2D diagram
Trace connections 3 relationships
  1. Input text or constructor argumentsFactory and reflection
  2. Factory and reflectionString rules and exceptions
  3. String rules and exceptionsTest assertions

Select a component to see how it fits into the system.

CAPABILITIES

What’s inside.

  • 01

    Rule-based string classification

  • 02

    Custom exceptions

  • 03

    Factory and reflection examples

  • 04

    Separate test project

Let’s build something useful.

Start a conversation ↗