mirror of
https://github.com/eliasstepanik/OSCADSharpDotnet7.git
synced 2026-01-23 11:18:27 +00:00
NotSupportedException on MultiStatementObject base class bind method
This commit is contained in:
parent
255318fb07
commit
8eba76a670
@ -53,5 +53,14 @@ namespace OSCADSharp.UnitTests
|
|||||||
|
|
||||||
Assert.AreEqual(0, childrenThatAreDiffs);
|
Assert.AreEqual(0, childrenThatAreDiffs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[TestMethod]
|
||||||
|
[ExpectedException(typeof(NotSupportedException))]
|
||||||
|
public void Difference_NoBindableProperties()
|
||||||
|
{
|
||||||
|
var diff = new Cube() - new Sphere();
|
||||||
|
|
||||||
|
diff.Bind("SomeProperty", new Scripting.Variable("test", 5));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -98,7 +98,7 @@ namespace OSCADSharp.Scripting
|
|||||||
|
|
||||||
public override void Bind(string property, Variable variable)
|
public override void Bind(string property, Variable variable)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
throw new NotSupportedException("This object has no bindable properties.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user