Best JustMockLite code snippet using Telerik.JustMock.Tests.WorkerHelper.ShouldMockNoninheritableInterfaceMembers
MockFixture.cs
Source:MockFixture.cs  
...1847			Assert.Equal(staticName, iName);1848		}1849#if LITE_EDITION && !COREFX1850		[TestMethod, TestCategory("Lite"), TestCategory("Mock")]1851		public void ShouldMockNoninheritableInterfaceMembers()1852		{1853			var mock = Mock.Create<PrivateInterface>(cfg =>1854				{1855					cfg.SetBehavior(Behavior.CallOriginal);1856					cfg.Implements<IJustDoIt>();1857					cfg.Implements<IJustDoThat>();1858					cfg.Implements<Scope.IImplementable>();1859					cfg.Implements<Scope.IImplementable2>();1860				});1861			Assert.Throws<InvalidOperationException>(() => ((IJustDoThat)mock).DoThat());1862			Mock.Arrange(() => mock.DoThat()).DoNothing();1863			((IJustDoThat)mock).DoThat();1864			Assert.Throws<InvalidOperationException>(() => ((IJustDoIt)mock).JustDoIt());1865			Mock.Arrange(() => ((IJustDoIt)mock).JustDoIt()).DoNothing();...Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!
